Commit 8d20319e authored by Colin Ian King's avatar Colin Ian King Committed by Jens Axboe

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: default avatarColin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 819f7b88
...@@ -1613,7 +1613,7 @@ static noinline_for_stack int pkt_get_last_written(struct pktcdvd_device *pd, ...@@ -1613,7 +1613,7 @@ static noinline_for_stack int pkt_get_last_written(struct pktcdvd_device *pd,
disc_information di; disc_information di;
track_information ti; track_information ti;
__u32 last_track; __u32 last_track;
int ret = -1; int ret;
ret = pkt_get_disc_info(pd, &di); ret = pkt_get_disc_info(pd, &di);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment