mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-29 01:35:12 -05:00
staging: comedi: Removed not necessary braces for single block
This patch is used to remove not necessary braces for single if block. Signed-off-by: Jitendra Khasdev <jkhasdev@gmail.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
82f1cebe64
commit
56eec1806f
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user