diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-04-06 21:07:11 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-17 19:54:24 -0600 |
commit | e1838cf01b2dbc71ac579bd762158c62a3e63f6f (patch) | |
tree | 973af467958d2e9b176a9f726a2bcc63885176b8 | |
parent | 4b28f3b448df42a202ebf2d8824280ee71e6d79a (diff) | |
download | linux-stable-e1838cf01b2dbc71ac579bd762158c62a3e63f6f.tar.gz linux-stable-e1838cf01b2dbc71ac579bd762158c62a3e63f6f.tar.bz2 linux-stable-e1838cf01b2dbc71ac579bd762158c62a3e63f6f.zip |
block: drbd: drbd_receiver: Remove redundant assignment to err
Variable err is set to '-EIO' but this value is never read as
it is overwritten or not used later on, hence it is a redundant
assignment and can be removed.
Clean up the following clang-analyzer warning:
drivers/block/drbd/drbd_receiver.c:3955:5: warning: Value stored to
'err' is never read [clang-analyzer-deadcode.DeadStores].
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/20220406190715.1938174-4-christoph.boehmwalder@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 2957b0b68d60..ef812ea3b4c5 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c @@ -3902,7 +3902,6 @@ static int receive_SyncParam(struct drbd_connection *connection, struct packet_i drbd_err(device, "verify-alg of wrong size, " "peer wants %u, accepting only up to %u byte\n", data_size, SHARED_SECRET_MAX); - err = -EIO; goto reconnect; } |