diff options
| author | Jiapeng Chong <[email protected]> | 2021-04-30 09:26:45 +0000 |
|---|---|---|
| committer | Denis Efremov <[email protected]> | 2021-06-15 06:18:51 +0000 |
| commit | 30ab5db7ee787c88236376ce6c88b53d613fcae2 (patch) | |
| tree | 4fae5e732070a6fcfc7c3caef372887e515db116 /net/switchdev/switchdev.c | |
| parent | mark pstore-blk as broken (diff) | |
| download | kernel-30ab5db7ee787c88236376ce6c88b53d613fcae2.tar.gz kernel-30ab5db7ee787c88236376ce6c88b53d613fcae2.zip | |
floppy: cleanup: remove redundant assignment to nr_sectors
Variable nr_sectors is set to zero but this value is never
read as it is overwritten later on, hence it is a redundant
assignment and can be removed.
Clean up the following clang-analyzer warning:
drivers/block/floppy.c:2333:2: warning: Value stored to 'nr_sectors' is
never read [clang-analyzer-deadcode.DeadStores].
Link: https://lore.kernel.org/r/1619774805-121562-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Denis Efremov <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
