hv_netvsc: Simplify num_chn checking in rndis_filter_device_add()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 1 Sep 2017 21:30:05 +0000 (14:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Sep 2017 03:39:12 +0000 (20:39 -0700)
commit5c4217d05d3258fa9999ad959c9b6da791b70bfa
treee99cb92b8ade45b0b5d6c36b23c62e1582fda513
parent715e2ec532f6bffc8ee1cb9282c9e6cbf8809591
hv_netvsc: Simplify num_chn checking in rndis_filter_device_add()

The minus one and assignment to a local variable is not necessary.
This patch simplifies it.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/rndis_filter.c