From: Anson Jacob Date: Sat, 27 Aug 2016 03:23:57 +0000 (-0400) Subject: staging: i4l: act2000: capi: Fix checkpatch warning X-Git-Tag: v4.9-rc1~119^2~889 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d2b7c4a9dd649316e00bd320a05341d4b00ee33;p=karo-tx-linux.git staging: i4l: act2000: capi: Fix checkpatch warning Fix checkpath.pl warning: trailing statements should be on next line open brace '{' following function declarations go on the next line Signed-off-by: Anson Jacob Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c index 41b4d191c215..bf04e6ffebad 100644 --- a/drivers/staging/i4l/act2000/capi.c +++ b/drivers/staging/i4l/act2000/capi.c @@ -113,7 +113,9 @@ actcapi_chkhdr(act2000_card *card, actcapi_msghdr *hdr) m->hdr.cmd.cmd = c; \ m->hdr.cmd.subcmd = s; \ m->hdr.msgnum = actcapi_nextsmsg(card); \ - } else m = NULL; \ + } else { \ + m = NULL; \ + } \ } #define ACTCAPI_CHKSKB if (!skb) { \ @@ -989,7 +991,8 @@ actcapi_debug_dlpd(actcapi_dlpd *dlpd) } #ifdef DEBUG_DUMP_SKB -static void dump_skb(struct sk_buff *skb) { +static void dump_skb(struct sk_buff *skb) +{ char tmp[80]; char *p = skb->data; char *t = tmp;