summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-11 16:35:27 +0200
committerJens Axboe <axboe@kernel.dk>2020-06-11 17:16:17 +0200
commit9a6a5738abf82d6f467a31f1f6779e495462f7af (patch)
treea4771c66e918f29160ccf7cde7984e84d2e0fad5 /drivers/block
parentpktcdvd: remove redundant initialization of variable ret (diff)
downloadlinux-9a6a5738abf82d6f467a31f1f6779e495462f7af.tar.xz
linux-9a6a5738abf82d6f467a31f1f6779e495462f7af.zip
umem: 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 <colin.king@canonical.com> Addresses-Coverity: ("Unused value") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/umem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c
index d84e8a878df2..1e2aa5ae2796 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -784,7 +784,7 @@ static const struct block_device_operations mm_fops = {
static int mm_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
- int ret = -ENODEV;
+ int ret;
struct cardinfo *card = &cards[num_cards];
unsigned char mem_present;
unsigned char batt_status;