diff --git a/tools/mksyscall.c b/tools/mksyscall.c index b9ebac8d29..2a25a1e005 100644 --- a/tools/mksyscall.c +++ b/tools/mksyscall.c @@ -208,7 +208,7 @@ static void generate_proxy(int nfixed, int nparms) fprintf(stream, "#include \n"); } - if (g_parm[HEADER_INDEX] && strlen(g_parm[HEADER_INDEX]) > 0) + if (strlen(g_parm[HEADER_INDEX]) > 0) { fprintf(stream, "#include <%s>\n", g_parm[HEADER_INDEX]); } @@ -429,7 +429,7 @@ static void generate_stub(int nfixed, int nparms) fprintf(stream, "#include \n"); fprintf(stream, "#include \n"); - if (g_parm[HEADER_INDEX] && strlen(g_parm[HEADER_INDEX]) > 0) + if (strlen(g_parm[HEADER_INDEX]) > 0) { fprintf(stream, "#include <%s>\n", g_parm[HEADER_INDEX]); } @@ -588,7 +588,7 @@ static void generate_wrapper(int nfixed, int nparms) fprintf(stream, "#include \n"); } - if (g_parm[HEADER_INDEX] && strlen(g_parm[HEADER_INDEX]) > 0) + if (strlen(g_parm[HEADER_INDEX]) > 0) { fprintf(stream, "#include <%s>\n", g_parm[HEADER_INDEX]); }