liquidio: removed check for queue size alignment
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Wed, 9 Aug 2017 20:28:04 +0000 (13:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 20:55:57 +0000 (13:55 -0700)
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>
drivers/net/ethernet/cavium/liquidio/request_manager.c

index 20a96bab3d0d56bb637b6e7e3b95f042f11d56c5..1e0fbce86d608991859efd40ccbd1340c8f08afb 100644 (file)
@@ -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];