From: Markus Elfring Date: Mon, 12 Mar 2018 09:20:04 +0000 (+0100) Subject: Bluetooth: btmrvl: Delete an unnecessary variable initialisation in btmrvl_sdio_regis... X-Git-Tag: v4.17-rc1~148^2~11^2~16 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a5c2f4c1c5292362c8f78e63f82c527cea955bbd;p=users%2Fwilly%2Fxarray.git Bluetooth: btmrvl: Delete an unnecessary variable initialisation in btmrvl_sdio_register_dev() 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 7dbb4463b539..cd27d2f48bf2 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -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!");