mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:40:58 +07:00
xfs: Remove redundant error variable from xfs_growfs_data_private()
Commit eab4e633
"xfs: uncached buffer reads need to return an error".
Remove redundant error variable, using the function level error variable
to store bp->b_error instead.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
parent
b2410e92b7
commit
897366f0e4
@ -176,7 +176,7 @@ xfs_growfs_data_private(
|
|||||||
if (!bp)
|
if (!bp)
|
||||||
return EIO;
|
return EIO;
|
||||||
if (bp->b_error) {
|
if (bp->b_error) {
|
||||||
int error = bp->b_error;
|
error = bp->b_error;
|
||||||
xfs_buf_relse(bp);
|
xfs_buf_relse(bp);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user