mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
bosserver: Remove a couple of dead assignments
Remove a couple of places where we initialise a variable, only to assign a new value to it a few lines later. Caught by clang-analyzer Change-Id: I096b80cce851f3494475e6f9683715b081ff8375 Reviewed-on: http://gerrit.openafs.org/9208 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
e595d35c18
commit
5d2d68f8ac
@ -299,7 +299,6 @@ ReadBozoFile(char *aname)
|
|||||||
|
|
||||||
for (code = 0; code < MAXPARMS; code++)
|
for (code = 0; code < MAXPARMS; code++)
|
||||||
parms[code] = NULL;
|
parms[code] = NULL;
|
||||||
tfile = (FILE *) 0;
|
|
||||||
if (!aname)
|
if (!aname)
|
||||||
aname = (char *)bozo_fileName;
|
aname = (char *)bozo_fileName;
|
||||||
tfile = fopen(aname, "r");
|
tfile = fopen(aname, "r");
|
||||||
@ -307,7 +306,7 @@ ReadBozoFile(char *aname)
|
|||||||
return 0; /* -1 */
|
return 0; /* -1 */
|
||||||
instp = malloc(BOZO_BSSIZE);
|
instp = malloc(BOZO_BSSIZE);
|
||||||
typep = malloc(BOZO_BSSIZE);
|
typep = malloc(BOZO_BSSIZE);
|
||||||
notifier = notp = malloc(BOZO_BSSIZE);
|
notp = malloc(BOZO_BSSIZE);
|
||||||
while (1) {
|
while (1) {
|
||||||
/* ok, read lines giving parms and such from the file */
|
/* ok, read lines giving parms and such from the file */
|
||||||
tp = fgets(tbuffer, sizeof(tbuffer), tfile);
|
tp = fgets(tbuffer, sizeof(tbuffer), tfile);
|
||||||
|
Loading…
Reference in New Issue
Block a user