[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161106085515.24141-1-naeilzoueidi@ubuntu.com>
Date: Sun, 6 Nov 2016 09:55:15 +0100
From: Naeil ZOUEIDI <naeilzoueidi@...ntu.com>
To: gregkh@...uxfoundation.org, bankarsandhya512@...il.com,
isdn@...ux-pingi.de, sudipm.mukherjee@...il.com, arnd@...db.de,
ansonjacob.aj@...il.com
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Naeil ZOUEIDI <naeilzoueidi@...ntu.com>
Subject: [PATCH] This is a patch to the capi.c file that fixes one instance of the following error: ERROR: do not use assignment in if condition
Staging: i4l: act200:
Signed-off-by: Naeil Zoueidi <naeilzoueidi@...ntu.com>
---
drivers/staging/i4l/act2000/capi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/i4l/act2000/capi.c b/drivers/staging/i4l/act2000/capi.c
index 62f5629..b494917 100644
--- a/drivers/staging/i4l/act2000/capi.c
+++ b/drivers/staging/i4l/act2000/capi.c
@@ -564,7 +564,8 @@ actcapi_data_b3_ind(act2000_card *card, struct sk_buff *skb) {
blocknr = msg->msg.data_b3_ind.blocknr;
skb_pull(skb, 19);
card->interface.rcvcallb_skb(card->myid, chan, skb);
- if (!(skb = alloc_skb(11, GFP_ATOMIC))) {
+ skb = alloc_skb(11, GFP_ATOMIC;
+ if (!skb) {
printk(KERN_WARNING "actcapi: alloc_skb failed\n");
return 1;
}
--
2.10.1
Powered by blists - more mailing lists