summaryrefslogtreecommitdiffstats
path: root/drivers/staging/slicoss
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2016-11-24 21:30:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 21:57:14 +0100
commit4dc0e9832ba1d6412e0d165fa90bae2c9294a905 (patch)
treeae9fd38779a1f0120713ded9c1636dd49d8c3a90 /drivers/staging/slicoss
parente0d648151d00fe50f062132d9fb59ecc9910c80a (diff)
downloadlinux-stable-4dc0e9832ba1d6412e0d165fa90bae2c9294a905.tar.gz
linux-stable-4dc0e9832ba1d6412e0d165fa90bae2c9294a905.tar.bz2
linux-stable-4dc0e9832ba1d6412e0d165fa90bae2c9294a905.zip
staging: slicoss: remove not used UPDATE_STATS macro
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>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r--drivers/staging/slicoss/slic.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h
index 1f6562c691fc..2c05868827c6 100644
--- a/drivers/staging/slicoss/slic.h
+++ b/drivers/staging/slicoss/slic.h
@@ -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)); \