]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: sm750fb: remove unused MB(x) and KB(x) macros
authorMike Rapoport <mike.rapoport@gmail.com>
Tue, 22 Sep 2015 09:01:18 +0000 (12:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:16:31 +0000 (04:16 +0200)
The MB(x) and KB(x) macros are not used and therefore they can be
removed

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.h
drivers/staging/sm750fb/sm750_help.h

index 5bc445571b48fe62c5933370daded21430d05934..793c0924463fe6b7f681df3bb26dbcd68e721e45 100644 (file)
@@ -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)))
index e7d74e681b975f3e38d69a242790a24fafa0b69c..08dcc69847d7701cd84d8289ecca77d4d934b9e8 100644 (file)
@@ -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)