All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: comedi: Removed not necessary braces for single block
@ 2019-01-15 14:51 root
  2019-01-15 15:20 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: root @ 2019-01-15 14:51 UTC (permalink / raw)
  To: abbotti, hsweeten, gregkh, devel, linux-kernel; +Cc: Jitendra Kumar Khasdev

This patch is used to remove not necessary braces for single if block.

Signed-off-by: Jitendra Kumar Khasdev <jkhasdev@gmail.com>
---
 drivers/staging/comedi/comedi_fops.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 5d2fcbfe02af..0caae4a5c471 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -1605,9 +1605,8 @@ static int do_insn_ioctl(struct comedi_device *dev,
 	unsigned int n_data = MIN_SAMPLES;
 	int ret = 0;

-	if (copy_from_user(&insn, arg, sizeof(insn))) {
+	if (copy_from_user(&insn, arg, sizeof(insn)))
 		return -EFAULT;
-	}

 	n_data = max(n_data, insn.n);

--
2.13.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] staging: comedi: Removed not necessary braces for single block
@ 2019-01-15 15:36 Jitendra Khasdev
  2019-01-16 10:44 ` Ian Abbott
  0 siblings, 1 reply; 5+ messages in thread
From: Jitendra Khasdev @ 2019-01-15 15:36 UTC (permalink / raw)
  To: abbotti, hsweeten, gregkh, devel, linux-kernel

This patch is used to remove not necessary braces for single if block.

Signed-off-by: Jitendra Khasdev <jkhasdev@gmail.com>
---
 drivers/staging/comedi/comedi_fops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 5d2fcbfe02af..38980fad8be4 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -1605,9 +1605,9 @@ static int do_insn_ioctl(struct comedi_device *dev,
 	unsigned int n_data = MIN_SAMPLES;
 	int ret = 0;
 
-	if (copy_from_user(&insn, arg, sizeof(insn))) {
+	if (copy_from_user(&insn, arg, sizeof(insn)))
 		return -EFAULT;
-	}
+
 
 	n_data = max(n_data, insn.n);
 
-- 
2.13.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-16 10:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 14:51 [PATCH] staging: comedi: Removed not necessary braces for single block root
2019-01-15 15:20 ` Greg KH
2019-01-15 19:48   ` Jitendra
2019-01-15 15:36 Jitendra Khasdev
2019-01-16 10:44 ` Ian Abbott

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.