diff options
author | Peng Li <lipeng321@huawei.com> | 2021-06-18 10:32:19 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-18 11:42:39 -0700 |
commit | fe9be8daef8a7e6bd539fa57a9e14c6b4f8261f7 (patch) | |
tree | 1b597ab52a2e1678732076410c66af5ff467c43a /drivers/net/wan | |
parent | fefed8af5ed40b861ee4d95c3e32804e7a33df96 (diff) | |
download | linux-stable-fe9be8daef8a7e6bd539fa57a9e14c6b4f8261f7.tar.gz linux-stable-fe9be8daef8a7e6bd539fa57a9e14c6b4f8261f7.tar.bz2 linux-stable-fe9be8daef8a7e6bd539fa57a9e14c6b4f8261f7.zip |
net: hostess_sv11: move out assignment in if condition
Should not use assignment in if condition.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/hostess_sv11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wan/hostess_sv11.c b/drivers/net/wan/hostess_sv11.c index a18c09dc335c..8dce8b190420 100644 --- a/drivers/net/wan/hostess_sv11.c +++ b/drivers/net/wan/hostess_sv11.c @@ -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; } |