Skip to contentSkip to conversation

fixup! block: parse partition table on block device registration

PATCH In review Ahmad Fatoum 2 participants 2 messages Jun 12, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! block: parse partition table on block device registration

efi: block: drop now unused variable definition

We now directly return blockdevice_register(...), so the ret variable is unused.

---
 drivers/block/efi-block-io.c | 1 -
 1 file changed, 1 deletion(-)
drivers/block/efi-block-io.c +0 -1
index 7162106ab8ea..79a62d53d30a 100644
@@ -146,7 +146,6 @@ static bool is_bio_usbdev(struct efi_device *efidev)
 
 static int efi_bio_probe(struct efi_device *efidev)
 {
-	int ret;
 	int instance;
 	struct efi_bio_priv *priv;
 	struct efi_block_io_media *media;
Signature · 1 line
2.40.1
#1 lore raw
Quoted 9 lines · Ahmad Fatoum

efi: block: drop now unused variable definition

We now directly return blockdevice_register(...), so the ret variable is unused.

---
 drivers/block/efi-block-io.c | 1 -
 1 file changed, 1 deletion(-)

Appplied, thanks

Sascha

Quoted 18 lines
drivers/block/efi-block-io.c +0 -1
index 7162106ab8ea..79a62d53d30a 100644
@@ -146,7 +146,6 @@ static bool is_bio_usbdev(struct efi_device *efidev)
 
 static int efi_bio_probe(struct efi_device *efidev)
 {
-	int ret;
 	int instance;
 	struct efi_bio_priv *priv;
 	struct efi_block_io_media *media;
Signature · 1 line
2.40.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |