summaryrefslogtreecommitdiff
path: root/drivers/ide/ide-timings.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2017-09-02 00:30:06 +0300
committerDavid S. Miller <davem@davemloft.net>2017-09-02 06:39:12 +0300
commit06be580ac7b650938cb3f2cf8cd02d73ff96d3e4 (patch)
treea4e33abdbe35cbb5028968e615c130b247280d01 /drivers/ide/ide-timings.c
parent5c4217d05d3258fa9999ad959c9b6da791b70bfa (diff)
downloadlinux-06be580ac7b650938cb3f2cf8cd02d73ff96d3e4.tar.xz
hv_netvsc: Simplify the limit check in netvsc_set_channels()
Because of the following code, net->num_tx_queues equals to VRSS_CHANNEL_MAX, and max_chn is less than or equals to VRSS_CHANNEL_MAX. netvsc_drv.c: alloc_etherdev_mq(sizeof(struct net_device_context), VRSS_CHANNEL_MAX); rndis_filter.c: net_device->max_chn = min_t(u32, VRSS_CHANNEL_MAX, num_possible_rss_qs); So this patch removes the unnecessary limit check before comparing with "max_chn". Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide-timings.c')
0 files changed, 0 insertions, 0 deletions