diff options
author | Intiyaz Basha <intiyaz.basha@cavium.com> | 2017-08-09 13:28:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 13:55:57 -0700 |
commit | 35c7ad3567b06593adbddb59674737fd29d388ad (patch) | |
tree | 67b373d88235f63e90cdb9c6d602d52bb299db80 /drivers/net/ethernet/cavium | |
parent | c1550fde51482feebeb8e27742672a2614cb1f12 (diff) | |
download | linux-35c7ad3567b06593adbddb59674737fd29d388ad.tar.bz2 |
liquidio: removed check for queue size alignment
There is no restriction on queue size alignment. Hence removing check for
valid queue size.
Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/request_manager.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c b/drivers/net/ethernet/cavium/liquidio/request_manager.c index 20a96bab3d0d..1e0fbce86d60 100644 --- a/drivers/net/ethernet/cavium/liquidio/request_manager.c +++ b/drivers/net/ethernet/cavium/liquidio/request_manager.c @@ -77,13 +77,6 @@ int octeon_init_instr_queue(struct octeon_device *oct, return 1; } - if (num_descs & (num_descs - 1)) { - dev_err(&oct->pci_dev->dev, - "Number of descriptors for instr queue %d not in power of 2.\n", - iq_no); - return 1; - } - q_size = (u32)conf->instr_type * num_descs; iq = oct->instr_queue[iq_no]; |