Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dgap: remove unused a parameter in dgap_gettok()

The "p" as parameter is unused.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Daeseok Youn and committed by
Greg Kroah-Hartman
7bab00ff e9cc5b2b

+4 -4
+4 -4
drivers/staging/dgap/dgap.c
··· 150 150 /* 151 151 * Function prototypes from dgap_parse.c. 152 152 */ 153 - static int dgap_gettok(char **in, struct cnode *p); 153 + static int dgap_gettok(char **in); 154 154 static char *dgap_getword(char **in); 155 155 static struct cnode *dgap_newnode(int t); 156 156 static int dgap_checknode(struct cnode *p); ··· 6342 6342 p = p->next; 6343 6343 6344 6344 /* file must start with a BEGIN */ 6345 - while ((rc = dgap_gettok(in, p)) != BEGIN) { 6345 + while ((rc = dgap_gettok(in)) != BEGIN) { 6346 6346 if (rc == 0) { 6347 6347 dgap_err("unexpected EOF"); 6348 6348 return -1; ··· 6350 6350 } 6351 6351 6352 6352 for (; ;) { 6353 - rc = dgap_gettok(in, p); 6353 + rc = dgap_gettok(in); 6354 6354 if (rc == 0) { 6355 6355 dgap_err("unexpected EOF"); 6356 6356 return -1; ··· 7100 7100 /* 7101 7101 * Get a token from the input file; return 0 if end of file is reached 7102 7102 */ 7103 - static int dgap_gettok(char **in, struct cnode *p) 7103 + static int dgap_gettok(char **in) 7104 7104 { 7105 7105 char *w; 7106 7106 struct toklist *t;