Commit 0fa96e39 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

staging: sm750fb: correct integer comparison

fixed the build warning about comparison of pointer and integer.
end of string was being compared to NULL.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06a1bf81
...@@ -1000,7 +1000,7 @@ static void sm750fb_setup(struct lynx_share * share,char * src) ...@@ -1000,7 +1000,7 @@ static void sm750fb_setup(struct lynx_share * share,char * src)
goto NO_PARAM; goto NO_PARAM;
} }
while((opt = strsep(&src,":")) != NULL && *opt != NULL){ while((opt = strsep(&src,":")) != NULL && *opt != 0){
pr_err("opt=%s\n",opt); pr_err("opt=%s\n",opt);
pr_err("src=%s\n",src); pr_err("src=%s\n",src);
......
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