Skip to contentSkip to conversation

staging: comedi: Removed not necessary braces for single block

PATCH In review root 2 participants 3 messages Jan 15, 2019 – Jan 16, 2019 Staging

lore
Share & tools
lore

root

author
#0 lore raw

PATCH 1/1 staging: comedi: Removed not necessary braces for single block

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

---
 drivers/staging/comedi/comedi_fops.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +1 -2
index 5d2fcbfe02af..0caae4a5c471 100644
@@ -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

maintainer
#1 lore raw
Quoted 6 lines · root

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

---
 drivers/staging/comedi/comedi_fops.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

"interesting" email name you used here :)

Please fix up, it has to match the signed-off-by line.

thanks,

greg k-h

author
#2 lore raw
Quoted 5 lines

"interesting" email name you used here :)

Please fix up, it has to match the signed-off-by line.

I fixed and resent the patch again.

---
Jitendra