Staging: keucr: Move the declaration of variable IsXDCompliance in smilsub.c
authorRashika Kheria <rashika.kheria@gmail.com>
Mon, 11 Nov 2013 15:12:35 +0000 (20:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Nov 2013 23:43:17 +0000 (15:43 -0800)
This patch moves the declaration of variable IsXDCompliance 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>
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 b885166..fff6c9e 100644 (file)
@@ -189,8 +189,6 @@ struct keucr_media_area {
        WORD PhyBlock;  /* Physical Block Number on Zone 0 */
 };
 
-extern BYTE IsXDCompliance;
-
 extern WORD    ReadBlock;
 extern WORD    WriteBlock;
 extern DWORD   MediaChange;
index a2691f5..9434cda 100644 (file)
@@ -44,9 +44,6 @@ static BYTE BitData[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 };
 #define Clr_D_Bit(a, b)    (a[(BYTE)((b) / 8)] &= ~BitData[(b) % 8])
 #define Chk_D_Bit(a, b)    (a[(BYTE)((b) / 8)] & BitData[(b) % 8])
 
-BYTE     IsXDCompliance;
-
-
 /* ----- SM_FreeMem() ------------------------------------------------- */
 int SM_FreeMem(void)
 {
index 2f36e06..16da9a9 100644 (file)
@@ -9,6 +9,7 @@
 static BYTE   _Check_D_DevCode(BYTE);
 static DWORD   ErrXDCode;
 static BYTE    IsSSFDCCompliance;
+static BYTE    IsXDCompliance;
 
 struct keucr_media_info         Ssfdc;
 struct keucr_media_address      Media;