Staging: keucr: Move the declaration of variable ErrXDCode in smilsub.c
authorRashika Kheria <rashika.kheria@gmail.com>
Mon, 11 Nov 2013 15:08:20 +0000 (20:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Nov 2013 23:41:36 +0000 (15:41 -0800)
This patch moves the declaration of variable ErrXDCode to file smilsub.c
since this is the only file which uses it. Hence, it also removes extern
declaration from the header file smil.h and unnecessary declaration in
smilmain.c

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>
drivers/staging/keucr/smil.h
drivers/staging/keucr/smilmain.c
drivers/staging/keucr/smilsub.c

index 1538d7bd600f10d7202d9b2bd9efe8441f526672..fe1d5dc7d53095275bd0efc2a0d6e15ec595d6fb 100644 (file)
@@ -193,7 +193,6 @@ struct keucr_media_area {
 extern BYTE IsSSFDCCompliance;
 extern BYTE IsXDCompliance;
 
-extern DWORD   ErrXDCode;
 extern DWORD   ErrCode;
 extern WORD    ReadBlock;
 extern WORD    WriteBlock;
index ed15c3531eb94c562ced1e13105e86023cd4012d..4e81c7adf74c45d1f129f14b96574b51ad2835d4 100644 (file)
@@ -25,7 +25,6 @@ static int  Make_D_LogTable(struct us_data *);
 
 static int  MarkFail_D_PhyOneBlock(struct us_data *);
 
-DWORD ErrXDCode;
 DWORD ErrCode;
 static BYTE  WorkBuf[SECTSIZE];
 static BYTE  Redundant[REDTSIZE];
index ea3c747b3a28028b46f72100ce68090c8f54e927..a58c6c557a19a7ed299f416aa7dbc1b16698d670 100644 (file)
@@ -7,6 +7,7 @@
 #include "smil.h"
 
 static BYTE   _Check_D_DevCode(BYTE);
+static DWORD   ErrXDCode;
 
 struct keucr_media_info         Ssfdc;
 struct keucr_media_address      Media;