projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3863f1
)
Bluetooth: btmrvl: Delete an unnecessary variable initialisation in btmrvl_sdio_regis...
author
Markus Elfring
<elfring@users.sourceforge.net>
Mon, 12 Mar 2018 09:20:04 +0000
(10:20 +0100)
committer
Marcel 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
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/btmrvl_sdio.c
b/drivers/bluetooth/btmrvl_sdio.c
index
7dbb446
..
cd27d2f
100644
(file)
--- 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!");