From 91c954dde335ff48e95074e57e40321f09851d96 Mon Sep 17 00:00:00 2001 From: Rashika Kheria Date: Mon, 11 Nov 2013 20:41:04 +0530 Subject: [PATCH] Staging: keucr: Move the declaration of variable IsSSFDCCompliance in smilsub.c This patch moves the declaration of variable IsSSFDCCompliance 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/keucr/smil.h | 2 -- drivers/staging/keucr/smilmain.c | 1 - drivers/staging/keucr/smilsub.c | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/keucr/smil.h b/drivers/staging/keucr/smil.h index 420529e884c6..b8851661c8f1 100644 --- a/drivers/staging/keucr/smil.h +++ b/drivers/staging/keucr/smil.h @@ -189,8 +189,6 @@ struct keucr_media_area { WORD PhyBlock; /* Physical Block Number on Zone 0 */ }; - -extern BYTE IsSSFDCCompliance; extern BYTE IsXDCompliance; extern WORD ReadBlock; diff --git a/drivers/staging/keucr/smilmain.c b/drivers/staging/keucr/smilmain.c index 02f73bfcd286..a2691f59391d 100644 --- a/drivers/staging/keucr/smilmain.c +++ b/drivers/staging/keucr/smilmain.c @@ -44,7 +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 IsSSFDCCompliance; BYTE IsXDCompliance; diff --git a/drivers/staging/keucr/smilsub.c b/drivers/staging/keucr/smilsub.c index a58c6c557a19..2f36e06c2718 100644 --- a/drivers/staging/keucr/smilsub.c +++ b/drivers/staging/keucr/smilsub.c @@ -8,6 +8,7 @@ static BYTE _Check_D_DevCode(BYTE); static DWORD ErrXDCode; +static BYTE IsSSFDCCompliance; struct keucr_media_info Ssfdc; struct keucr_media_address Media; -- 2.20.1