Bluetooth: btmrvl: Delete an unnecessary variable initialisation in btmrvl_sdio_regis...
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 12 Mar 2018 09:20:04 +0000 (10:20 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 1 Apr 2018 12:25:30 +0000 (14:25 +0200)
The local variable "ret" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_sdio.c

index 7dbb446..cd27d2f 100644 (file)
@@ -920,7 +920,7 @@ static int btmrvl_sdio_register_dev(struct btmrvl_sdio_card *card)
 {
        struct sdio_func *func;
        u8 reg;
-       int ret = 0;
+       int ret;
 
        if (!card || !card->func) {
                BT_ERR("Error: card or function is NULL!");