Skip to contentSkip to conversation

Adding a missing parenthesis to an assignment and fixing my first patch This patch is a fix to the error ERROR: do not use assignment in if condition found by the checkpatch tool

PATCH New Naeil ZOUEIDI 1 participant 1 message Nov 6, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Adding a missing parenthesis to an assignment and fixing my first patch This patch is a fix to the error ERROR: do not use assignment in if condition found by the checkpatch tool

Staging: i4l: act2000:

---
 drivers/staging/i4l/act2000/capi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/i4l/act2000/capi.c +1 -1
index b494917..62dee39 100644
@@ -564,7 +564,7 @@ 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);
-	skb = alloc_skb(11, GFP_ATOMIC;
+	skb = alloc_skb(11, GFP_ATOMIC);
 	if (!skb) {
 		printk(KERN_WARNING "actcapi: alloc_skb failed\n");
 		return 1;
Signature · 1 line
2.10.1