]> git.hungrycats.org Git - linux/commitdiff
caif: Add missing braces to multiline if in cfctrl_linkup_request
authorDave Jones <davej@redhat.com>
Thu, 5 Sep 2013 04:11:19 +0000 (00:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 21:51:07 +0000 (14:51 -0700)
[ Upstream commit 0c1db731bfcf3a9fd6c58132134f8b0f423552f0 ]

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/caif/cfctrl.c

index e22671bed66917a8899a1a0e5ab4c8ff7291c99b..a80d94aa6f0a97b012aeb46a4a19e11ced0d57e6 100644 (file)
@@ -297,9 +297,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;
 }