]> git.baikalelectronics.ru Git - kernel.git/commitdiff
liquidio: remove unused inline functions
authorYueHaibing <yuehaibing@huawei.com>
Fri, 24 Apr 2020 13:11:34 +0000 (21:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2020 03:42:57 +0000 (20:42 -0700)
commit 88e000f90027 ("net/liquidio: Delete driver version assignment")
left behind this, remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.h

index 3d01d3602d8f16aad7d0ea51fb42cc689aeb4dd1..fb380b4f3e02070757a0cd486250dd65e590ec6a 100644 (file)
@@ -712,18 +712,6 @@ struct octeon_device *lio_get_device(u32 octeon_id);
  */
 int lio_get_device_id(void *dev);
 
-static inline u16 OCTEON_MAJOR_REV(struct octeon_device *oct)
-{
-       u16 rev = (oct->rev_id & 0xC) >> 2;
-
-       return (rev == 0) ? 1 : rev;
-}
-
-static inline u16 OCTEON_MINOR_REV(struct octeon_device *oct)
-{
-       return oct->rev_id & 0x3;
-}
-
 /** Read windowed register.
  *  @param  oct   -  pointer to the Octeon device.
  *  @param  addr  -  Address of the register to read.