* [PATCH] Add missing braces to multiline if in cfctrl_linkup_request
@ 2013-09-05 4:11 Dave Jones
0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2013-09-05 4:11 UTC (permalink / raw)
To: dmitry.tarnyagin; +Cc: netdev
The indentation here implies this was meant to be a multi-line if.
Introduced several years back in commit c85c2951d4da1236e32f1858db418221e624aba5
("caif: Handle dev_queue_xmit errors.")
Signed-off-by: Dave Jones <davej@fedoraproject.org>
diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c
index 2bd4b58..0f45522 100644
--- a/net/caif/cfctrl.c
+++ b/net/caif/cfctrl.c
@@ -293,9 +293,10 @@ int cfctrl_linkup_request(struct cflayer *layer,
count = cfctrl_cancel_req(&cfctrl->serv.layer,
user_layer);
- if (count != 1)
+ if (count != 1) {
pr_err("Could not remove request (%d)", count);
return -ENODEV;
+ }
}
return 0;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-05 4:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 4:11 [PATCH] Add missing braces to multiline if in cfctrl_linkup_request Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).