Skip to content

Commit 9a6a573

Browse files
Colin Ian Kingaxboe
authored andcommitted
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 <[email protected]> Addresses-Coverity: ("Unused value") Signed-off-by: Jens Axboe <[email protected]>
1 parent 8d20319 commit 9a6a573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/umem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ static const struct block_device_operations mm_fops = {
784784

785785
static int mm_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
786786
{
787-
int ret = -ENODEV;
787+
int ret;
788788
struct cardinfo *card = &cards[num_cards];
789789
unsigned char mem_present;
790790
unsigned char batt_status;

0 commit comments

Comments
 (0)