Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1391697

[PATCH 1/4] staging: i4l: act2000: fix use of return

From Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/4] staging: i4l: act2000: fix use of return
Date 2016-04-30 23:40 +0200
Message-ID <rtKMh-6nl-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


checkpatch warns that return is not a function and as such the brace
after it is not required.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
---
 drivers/staging/i4l/act2000/act2000_isa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/i4l/act2000/act2000_isa.c b/drivers/staging/i4l/act2000/act2000_isa.c
index b5fad29..34c0a9a 100644
--- a/drivers/staging/i4l/act2000/act2000_isa.c
+++ b/drivers/staging/i4l/act2000/act2000_isa.c
@@ -439,5 +439,5 @@ act2000_isa_download(act2000_card *card, act2000_ddef __user *cb)
 	}
 	kfree(buf);
 	msleep_interruptible(500);
-	return (act2000_isa_getid(card));
+	return act2000_isa_getid(card);
 }
-- 
1.9.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/4] staging: i4l: act2000: fix use of return Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2016-04-30 23:40 +0200
  [PATCH 3/4] staging: i4l: act2000: remove blank line after brace Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2016-04-30 23:40 +0200
  [PATCH 4/4] staging: i4l: act2000: remove extra space Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2016-04-30 23:40 +0200

csiph-web