mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
msdosfs: Drop an unneeded brelse in bread error condition
After r294954, it is an invariant that bread returns non-NULL bp if and only if the routine succeeded. On error, it handles any buffer cleanup internally. So the brelse(NULL) here was just redundant. No functional change. Discussed with: kib (extracted from a larger differential)
This commit is contained in:
parent
ed4e4cff0e
commit
f80cbeb292
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351898
@ -1145,10 +1145,8 @@ markvoldirty(struct msdosfsmount *pmp, int dirty)
|
|||||||
byteoffset = FATOFS(pmp, 1);
|
byteoffset = FATOFS(pmp, 1);
|
||||||
fatblock(pmp, byteoffset, &bn, &bsize, &bo);
|
fatblock(pmp, byteoffset, &bn, &bsize, &bo);
|
||||||
error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp);
|
error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp);
|
||||||
if (error) {
|
if (error)
|
||||||
brelse(bp);
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the current value of the FAT entry and set/clear the relevant
|
* Get the current value of the FAT entry and set/clear the relevant
|
||||||
|
Loading…
Reference in New Issue
Block a user