From: Sergio Paracuellos Date: Thu, 24 Nov 2016 20:30:18 +0000 (+0100) Subject: staging: slicoss: remove not used UPDATE_STATS macro X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4dc0e9832ba1d6412e0d165fa90bae2c9294a905;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)); \