From e967d336ee1a01ced24907ead6cd93dc4f097bed Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Tue, 22 Sep 2015 12:01:18 +0300 Subject: [PATCH] staging: sm750fb: remove unused MB(x) and KB(x) macros The MB(x) and KB(x) macros are not used and therefore they can be removed Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman --- drivers/staging/sm750fb/sm750.h | 1 - drivers/staging/sm750fb/sm750_help.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h index 5bc445571b48..793c0924463f 100644 --- a/drivers/staging/sm750fb/sm750.h +++ b/drivers/staging/sm750fb/sm750.h @@ -7,7 +7,6 @@ /* please use revision id to distinguish sm750le and sm750*/ #define SPC_SM750 0 -#define MB(x) ((x)<<20) #define MHZ(x) ((x) * 1000000) /* align should be 2,4,8,16 */ #define PADDING(align, data) (((data)+(align)-1)&(~((align) - 1))) diff --git a/drivers/staging/sm750fb/sm750_help.h b/drivers/staging/sm750fb/sm750_help.h index e7d74e681b97..08dcc69847d7 100644 --- a/drivers/staging/sm750fb/sm750_help.h +++ b/drivers/staging/sm750fb/sm750_help.h @@ -81,8 +81,6 @@ static inline unsigned int absDiff(unsigned int a, unsigned int b) /* n / d + 1 / 2 = (2n + d) / 2d */ #define roundedDiv(num, denom) ((2 * (num) + (denom)) / (2 * (denom))) -#define MB(x) ((x)<<20) -#define KB(x) ((x)<<10) #define MHz(x) ((x) * 1000000) -- 2.20.1