mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-04 21:49:11 +08:00
staging: i4l: act2000: Move assignment out of if statement
This patch places assignments which are inside the if condition, above it.
Done using coccinelle:
@@
statement s;
expression e;
identifier id;
@@
- if ((id = e))
+ id = e;
+ if (id)
s
Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1e5a82e0dd
commit
cd9ae9e4db
@@ -289,7 +289,8 @@ act2000_command(act2000_card *card, isdn_ctrl *c)
|
||||
if (copy_from_user(tmp, arg,
|
||||
sizeof(tmp)))
|
||||
return -EFAULT;
|
||||
if ((ret = act2000_set_msn(card, tmp)))
|
||||
ret = act2000_set_msn(card, tmp);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (card->flags & ACT2000_FLAGS_RUNNING)
|
||||
return (actcapi_manufacturer_req_msn(card));
|
||||
|
||||
Reference in New Issue
Block a user