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>
        struct ndis_recv_scale_cap rsscap;
        u32 rsscap_size = sizeof(struct ndis_recv_scale_cap);
        unsigned int gso_max_size = GSO_MAX_SIZE;
-       u32 mtu, size, num_rss_qs;
+       u32 mtu, size;
        const struct cpumask *node_cpu_mask;
        u32 num_possible_rss_qs;
        int i, ret;
                                                        net_device->num_chn);
 
        atomic_set(&net_device->open_chn, 1);
-       num_rss_qs = net_device->num_chn - 1;
-       if (num_rss_qs == 0)
+
+       if (net_device->num_chn == 1)
                return net_device;
 
        for (i = 1; i < net_device->num_chn; i++) {