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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -340,7 +340,8 @@ static struct z8530_dev *sv11_unit;

int init_module(void)
{
	if ((sv11_unit = sv11_init(io, irq)) == NULL)
	sv11_unit = sv11_init(io, irq);
	if (!sv11_unit)
		return -ENODEV;
	return 0;
}