fsdax: remove redundant variable 'error'
authorColin Ian King <colin.i.king@gmail.com>
Wed, 21 Jun 2023 13:02:56 +0000 (14:02 +0100)
committerVishal Verma <vishal.l.verma@intel.com>
Fri, 23 Jun 2023 07:31:31 +0000 (01:31 -0600)
commitdd0c64258a9d9e74b4896f05c7e77fa3365b5f12
treef87b78766f1c63f341c3bc848fbadd4aa7ddaff4
parent2532f41607c4308733239dd43278f8a5540f3ec7
fsdax: remove redundant variable 'error'

The variable 'error' is being assigned a value that is never read,
the assignment and the variable and redundant and can be removed.
Cleans up clang scan build warning:

fs/dax.c:1880:10: warning: Although the value stored to 'error' is
used in the enclosing expression, the value is never actually read
from 'error' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20230621130256.2676126-1-colin.i.king@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
fs/dax.c