mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
staging/ft1000-pcmcia: fix checkpatch warnings
The below checkpatch warns fixed, drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c:38: ERROR: that open brace { should be on the previous line drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c:45: ERROR: that open brace { should be on the previous line drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c:57: ERROR: that open brace { should be on the previous line Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cfe116c2c0
commit
95f2825d3b
@ -34,16 +34,14 @@
|
||||
|
||||
#define PUTX_TO_PAGE(len, page, message, size, var) \
|
||||
len += snprintf(page+len, PAGE_SIZE - len, message); \
|
||||
for(i = 0; i < (size - 1); i++) \
|
||||
{ \
|
||||
for(i = 0; i < (size - 1); i++) { \
|
||||
len += snprintf(page+len, PAGE_SIZE - len, "%02x:", var[i]); \
|
||||
} \
|
||||
len += snprintf(page+len, PAGE_SIZE - len, "%02x\n", var[i])
|
||||
|
||||
#define PUTD_TO_PAGE(len, page, message, size, var) \
|
||||
len += snprintf(page+len, PAGE_SIZE - len, message); \
|
||||
for(i = 0; i < (size - 1); i++) \
|
||||
{ \
|
||||
for(i = 0; i < (size - 1); i++) { \
|
||||
len += snprintf(page+len, PAGE_SIZE - len, "%d.", var[i]); \
|
||||
} \
|
||||
len += snprintf(page+len, PAGE_SIZE - len, "%d\n", var[i])
|
||||
@ -55,8 +53,8 @@ static int ft1000ReadProc(char *page, char **start, off_t off,
|
||||
int len;
|
||||
int i;
|
||||
struct ft1000_info *info;
|
||||
char *status[] =
|
||||
{ "Idle (Disconnect)", "Searching", "Active (Connected)",
|
||||
char *status[] = {
|
||||
"Idle (Disconnect)", "Searching", "Active (Connected)",
|
||||
"Waiting for L2", "Sleep", "No Coverage", "", ""
|
||||
};
|
||||
char *signal[] = { "", "*", "**", "***", "****" };
|
||||
|
Loading…
Reference in New Issue
Block a user