mirror of https://gitee.com/openkylin/linux.git
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: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
06a1bf8136
commit
0fa96e3927
|
@ -1000,7 +1000,7 @@ static void sm750fb_setup(struct lynx_share * share,char * src)
|
|||
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("src=%s\n",src);
|
||||
|
||||
|
|
Loading…
Reference in New Issue