]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: slicoss: remove not used UPDATE_STATS macro
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 24 Nov 2016 20:30:18 +0000 (21:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 20:57:14 +0000 (21:57 +0100)
This patch remove UPDATE_STATS macro from
header slic.h which is not being used.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slic.h

index 1f6562c691fc310a3b1e5a3a17ec6b1582555726..2c05868827c6b9e4912c4314d4569e72fe8e85c2 100644 (file)
@@ -548,14 +548,6 @@ static inline void slic_flush_write(struct adapter *adapter)
        ioread32(adapter->regs + SLIC_REG_HOSTID);
 }
 
-#define UPDATE_STATS(largestat, newstat, oldstat)                        \
-{                                                                        \
-       if ((newstat) < (oldstat))                                       \
-               (largestat) += ((newstat) + (0xFFFFFFFF - oldstat + 1)); \
-       else                                                             \
-               (largestat) += ((newstat) - (oldstat));                  \
-}
-
 #define UPDATE_STATS_GB(largestat, newstat, oldstat)                     \
 {                                                                        \
        (largestat) += ((newstat) - (oldstat));                          \