Skip to content

Commit

Permalink
staging: wlags49_h2: remove custom macros min() and max()
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Oct 12, 2010
1 parent 97eea3a commit a252d02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions drivers/staging/wlags49_h2/hcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
#include "hcf.h" // HCF and MSF common include file
#include "hcfdef.h" // HCF specific include file
#include "mmd.h" // MoreModularDriver common include file
#include <linux/kernel.h>

#if ! defined offsetof
#define offsetof(s,m) ((unsigned int)&(((s *)0)->m))
Expand Down
8 changes: 0 additions & 8 deletions drivers/staging/wlags49_h2/hcfdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -593,14 +593,6 @@ err: ;
/************************************** MACROS ************************************************/
/************************************************************************************************/

/* min and max macros */
#if ! defined max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#if ! defined min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif

#ifdef HCF_SLEEP
#if defined MSF_WAIT
err: MSF should no longer supply this macro;
Expand Down

0 comments on commit a252d02

Please sign in to comment.