Skip to content

Commit a6431e3

Browse files
ColinIanKingaxboe
authored andcommitted
aoe: remove redundant assignment on variable n
The variable n is being bit-wise or'd with a value and reassigned before being returned. The update of n is redundant, replace the |= operator with | instead. Cleans up clang scan warning: drivers/block/aoe/aoecmd.c:125:9: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n' [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220113000545.1307091-1-colin.i.king@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 413ec80 commit a6431e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/aoe/aoecmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ newtag(struct aoedev *d)
122122
register ulong n;
123123

124124
n = jiffies & 0xffff;
125-
return n |= (++d->lasttag & 0x7fff) << 16;
125+
return n | (++d->lasttag & 0x7fff) << 16;
126126
}
127127

128128
static u32

0 commit comments

Comments
 (0)