Skip to content

Commit 8d20319

Browse files
Colin Ian Kingaxboe
authored andcommitted
pktcdvd: remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Signed-off-by: Colin Ian King <[email protected]> Addresses-Coverity: ("Unused value") Signed-off-by: Jens Axboe <[email protected]>
1 parent 819f7b8 commit 8d20319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/pktcdvd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ static noinline_for_stack int pkt_get_last_written(struct pktcdvd_device *pd,
16131613
disc_information di;
16141614
track_information ti;
16151615
__u32 last_track;
1616-
int ret = -1;
1616+
int ret;
16171617

16181618
ret = pkt_get_disc_info(pd, &di);
16191619
if (ret)

0 commit comments

Comments
 (0)