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>
        WORD PhyBlock;  /* Physical Block Number on Zone 0 */
 };
 
-extern BYTE IsXDCompliance;
-
 extern WORD    ReadBlock;
 extern WORD    WriteBlock;
 extern DWORD   MediaChange;
 
 #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)
 {
 
 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;