]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Fix 'set but not used' warning in xfs_bmap_compute_alignments()
authorChandan Babu R <chandanrlinux@gmail.com>
Wed, 27 Jan 2021 16:35:14 +0000 (08:35 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 1 Feb 2021 17:44:24 +0000 (09:44 -0800)
commit6953c3ca1b7d14bc80076a6f9386ebf2f1b316a6
tree37ec78fd059d79e920a92295f1406b3dcb54d657
parentde846c206859d78200433e063b38019f0ad46e35
xfs: Fix 'set but not used' warning in xfs_bmap_compute_alignments()

With both CONFIG_XFS_DEBUG and CONFIG_XFS_WARN disabled, the only reference to
local variable "error" in xfs_bmap_compute_alignments() gets eliminated during
pre-processing stage of the compilation process. This causes the compiler to
generate a "set but not used" warning.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_bmap.c