Browse Source

Staging: keucr: Move the declaration of variable ErrCode in smilmain.c

This patch moves the declaration of variable ErrCode to file smilmain.c
since this is the only file which uses it. Hence, it also removes extern
declaration from the header file smil.h.

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Rashika Kheria 12 years ago
parent
commit
665fba0e1d
2 changed files with 1 additions and 2 deletions
  1. 0 1
      drivers/staging/keucr/smil.h
  2. 1 1
      drivers/staging/keucr/smilmain.c

+ 0 - 1
drivers/staging/keucr/smil.h

@@ -193,7 +193,6 @@ struct keucr_media_area {
 extern BYTE IsSSFDCCompliance;
 extern BYTE IsXDCompliance;
 
-extern DWORD	ErrCode;
 extern WORD	ReadBlock;
 extern WORD	WriteBlock;
 extern DWORD	MediaChange;

+ 1 - 1
drivers/staging/keucr/smilmain.c

@@ -25,7 +25,7 @@ static int  Make_D_LogTable(struct us_data *);
 
 static int  MarkFail_D_PhyOneBlock(struct us_data *);
 
-DWORD ErrCode;
+static DWORD ErrCode;
 static BYTE  WorkBuf[SECTSIZE];
 static BYTE  Redundant[REDTSIZE];
 static BYTE  WorkRedund[REDTSIZE];