From: Rashika Kheria Date: Mon, 11 Nov 2013 15:08:20 +0000 (+0530) Subject: Staging: keucr: Move the declaration of variable ErrXDCode in smilsub.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52fdda40f65422d6e88df599169607f442c36267;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: keucr: Move the declaration of variable ErrXDCode in smilsub.c 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 Reviewed-by: Peter P Waskiewicz Jr Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/keucr/smil.h b/drivers/staging/keucr/smil.h index 1538d7bd600f..fe1d5dc7d530 100644 --- a/drivers/staging/keucr/smil.h +++ b/drivers/staging/keucr/smil.h @@ -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; diff --git a/drivers/staging/keucr/smilmain.c b/drivers/staging/keucr/smilmain.c index ed15c3531eb9..4e81c7adf74c 100644 --- a/drivers/staging/keucr/smilmain.c +++ b/drivers/staging/keucr/smilmain.c @@ -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]; diff --git a/drivers/staging/keucr/smilsub.c b/drivers/staging/keucr/smilsub.c index ea3c747b3a28..a58c6c557a19 100644 --- a/drivers/staging/keucr/smilsub.c +++ b/drivers/staging/keucr/smilsub.c @@ -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;