瀏覽代碼

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 <elfring@users.sourceforge.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Markus Elfring 7 年之前
父節點
當前提交
a5c2f4c1c5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/bluetooth/btmrvl_sdio.c

+ 1 - 1
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!");