Commit 7bab00ff authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

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

The "p" as parameter is unused.
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9cc5b2b
...@@ -150,7 +150,7 @@ static void dgap_firmware_reset_port(struct channel_t *ch); ...@@ -150,7 +150,7 @@ static void dgap_firmware_reset_port(struct channel_t *ch);
/* /*
* Function prototypes from dgap_parse.c. * Function prototypes from dgap_parse.c.
*/ */
static int dgap_gettok(char **in, struct cnode *p); static int dgap_gettok(char **in);
static char *dgap_getword(char **in); static char *dgap_getword(char **in);
static struct cnode *dgap_newnode(int t); static struct cnode *dgap_newnode(int t);
static int dgap_checknode(struct cnode *p); static int dgap_checknode(struct cnode *p);
...@@ -6342,7 +6342,7 @@ static int dgap_parsefile(char **in) ...@@ -6342,7 +6342,7 @@ static int dgap_parsefile(char **in)
p = p->next; p = p->next;
/* file must start with a BEGIN */ /* file must start with a BEGIN */
while ((rc = dgap_gettok(in, p)) != BEGIN) { while ((rc = dgap_gettok(in)) != BEGIN) {
if (rc == 0) { if (rc == 0) {
dgap_err("unexpected EOF"); dgap_err("unexpected EOF");
return -1; return -1;
...@@ -6350,7 +6350,7 @@ static int dgap_parsefile(char **in) ...@@ -6350,7 +6350,7 @@ static int dgap_parsefile(char **in)
} }
for (; ;) { for (; ;) {
rc = dgap_gettok(in, p); rc = dgap_gettok(in);
if (rc == 0) { if (rc == 0) {
dgap_err("unexpected EOF"); dgap_err("unexpected EOF");
return -1; return -1;
...@@ -7100,7 +7100,7 @@ static char *dgap_sindex(char *string, char *group) ...@@ -7100,7 +7100,7 @@ static char *dgap_sindex(char *string, char *group)
/* /*
* Get a token from the input file; return 0 if end of file is reached * Get a token from the input file; return 0 if end of file is reached
*/ */
static int dgap_gettok(char **in, struct cnode *p) static int dgap_gettok(char **in)
{ {
char *w; char *w;
struct toklist *t; struct toklist *t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment