diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-08-10 08:46:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 14:51:53 -0700 |
commit | 8922967ea36eac4c2f5eaa78ec43d781340ccc31 (patch) | |
tree | fb3450357f6766b8e28e2025212ae9ce5e097d16 /drivers/staging/xgifb/vb_util.c | |
parent | 6a4ca0399255260bb04fa4e718625ede0c745e59 (diff) |
Staging: xgifb: fix lots of sparse warnings
Fix many sparse warnings about data or functions being static.
Fix many sparse warnings about data or functions not being used
(put them inside #if 0/#endif blocks).
Fix sparse warnings about 0 being used for NULL.
Fixed a small bit of source formatting when those lines were being
modified anyway, but there is still lots of this yet to be done.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: devel@driverdev.osuosl.org
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/xgifb/vb_util.c')
-rw-r--r-- | drivers/staging/xgifb/vb_util.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/xgifb/vb_util.c b/drivers/staging/xgifb/vb_util.c index 2c40368ceee2..ae27f0ca093e 100644 --- a/drivers/staging/xgifb/vb_util.c +++ b/drivers/staging/xgifb/vb_util.c @@ -170,7 +170,7 @@ void XGINew_SetRegOR( unsigned long Port , unsigned short Index , unsigned short XGINew_SetReg1( Port , Index , temp ) ; } - +#if 0 /* --------------------------------------------------------------------- */ /* Function : NewDelaySecond */ /* Input : */ @@ -190,7 +190,6 @@ void NewDelaySeconds( int seconds ) } } - /* --------------------------------------------------------------------- */ /* Function : Newdebugcode */ /* Input : */ @@ -203,6 +202,4 @@ void Newdebugcode(unsigned char code) /* OutPortByte ( 0x300 , code ) ; */ /* NewDelaySeconds( 0x3 ) ; */ } - - - +#endif |