Commit fe9be8da authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: hostess_sv11: move out assignment in if condition

Should not use assignment in if condition.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fefed8af
...@@ -340,7 +340,8 @@ static struct z8530_dev *sv11_unit; ...@@ -340,7 +340,8 @@ static struct z8530_dev *sv11_unit;
int init_module(void) int init_module(void)
{ {
if ((sv11_unit = sv11_init(io, irq)) == NULL) sv11_unit = sv11_init(io, irq);
if (!sv11_unit)
return -ENODEV; return -ENODEV;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment