mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
butc: Remove dead assignment
We never use the value of mvFlag once the string has been restored, so don't bother reseting it. Caught by clang-analyzer Change-Id: I12db6957c9b8ec3bb9c43f10d9e9754d4afa3ed7 Reviewed-on: http://gerrit.openafs.org/9248 Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com> Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
3fbdc609dc
commit
82b3760c4f
@ -288,10 +288,9 @@ stringNowReplace(char *logFile, char *deviceName)
|
|||||||
*pos = '_';
|
*pos = '_';
|
||||||
strcat(logFile, deviceName);
|
strcat(logFile, deviceName);
|
||||||
/* now put back deviceName to the way it was */
|
/* now put back deviceName to the way it was */
|
||||||
if (mvFlag) {
|
if (mvFlag)
|
||||||
mvFlag = 0;
|
|
||||||
deviceName -= devPrefLen;
|
deviceName -= devPrefLen;
|
||||||
}
|
|
||||||
strcpy(deviceName, storeDevice);
|
strcpy(deviceName, storeDevice);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user