From: Rashika Kheria Date: Mon, 11 Nov 2013 15:09:34 +0000 (+0530) Subject: Staging: keucr: Move the declaration of variable ErrCode in smilmain.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=665fba0e1d28df9f2f4659991063e90040d62917;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: keucr: Move the declaration of variable ErrCode in smilmain.c This patch moves the declaration of variable ErrCode to file smilmain.c since this is the only file which uses it. Hence, it also removes extern declaration from the header file smil.h. 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 fe1d5dc7d530..420529e884c6 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 ErrCode; extern WORD ReadBlock; extern WORD WriteBlock; extern DWORD MediaChange; diff --git a/drivers/staging/keucr/smilmain.c b/drivers/staging/keucr/smilmain.c index 4e81c7adf74c..02f73bfcd286 100644 --- a/drivers/staging/keucr/smilmain.c +++ b/drivers/staging/keucr/smilmain.c @@ -25,7 +25,7 @@ static int Make_D_LogTable(struct us_data *); static int MarkFail_D_PhyOneBlock(struct us_data *); -DWORD ErrCode; +static DWORD ErrCode; static BYTE WorkBuf[SECTSIZE]; static BYTE Redundant[REDTSIZE]; static BYTE WorkRedund[REDTSIZE];