提交 a5c2f4c1 编写于 作者: M Markus Elfring 提交者: Marcel Holtmann

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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 f3863f1d
...@@ -920,7 +920,7 @@ static int btmrvl_sdio_register_dev(struct btmrvl_sdio_card *card) ...@@ -920,7 +920,7 @@ static int btmrvl_sdio_register_dev(struct btmrvl_sdio_card *card)
{ {
struct sdio_func *func; struct sdio_func *func;
u8 reg; u8 reg;
int ret = 0; int ret;
if (!card || !card->func) { if (!card || !card->func) {
BT_ERR("Error: card or function is NULL!"); BT_ERR("Error: card or function is NULL!");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册