summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-11-11 20:42:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-11 15:43:17 -0800
commitf6daf9e6880da85beaf38718ac264e8922988750 (patch)
tree73ea0aa3df780c35f4d14cfccbdcbfe43d2c60c2 /drivers
parent91c954dde335ff48e95074e57e40321f09851d96 (diff)
Staging: keucr: Move the declaration of variable IsXDCompliance in smilsub.c
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/keucr/smil.h2
-rw-r--r--drivers/staging/keucr/smilmain.c3
-rw-r--r--drivers/staging/keucr/smilsub.c1
3 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/keucr/smil.h b/drivers/staging/keucr/smil.h
index b8851661c8f1..fff6c9e6164a 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 IsXDCompliance;
-
extern WORD ReadBlock;
extern WORD WriteBlock;
extern DWORD MediaChange;
diff --git a/drivers/staging/keucr/smilmain.c b/drivers/staging/keucr/smilmain.c
index a2691f59391d..9434cda885ca 100644
--- a/drivers/staging/keucr/smilmain.c
+++ b/drivers/staging/keucr/smilmain.c
@@ -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)
{
diff --git a/drivers/staging/keucr/smilsub.c b/drivers/staging/keucr/smilsub.c
index 2f36e06c2718..16da9a9b4033 100644
--- a/drivers/staging/keucr/smilsub.c
+++ b/drivers/staging/keucr/smilsub.c
@@ -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;