]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix compile warnings
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 May 2011 07:14:29 +0000 (09:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 May 2011 07:14:29 +0000 (09:14 +0200)
strstr() returns a char pointer

simple_none.c: In function ‘base_len’:
simple_none.c:940:33: warning: ordered comparison of pointer with integer zero
simple_none.c:941:29: warning: ordered comparison of pointer with integer zero

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/mixer/simple_none.c

index 395e4d602a5f836953f09fbe911bb48d29e4d46d..b11e9e8ad01936e6ace0e00cb9d295ccb80a9028 100644 (file)
@@ -937,8 +937,8 @@ static int base_len(const char *name, selem_ctl_type_t *type)
                *type = CTL_CAPTURE_ROUTE;
                return strlen(name);
        }
-       if (strstr(name, "3D Control") > 0) {
-               if (strstr(name, "Depth") > 0) {
+       if (strstr(name, "3D Control")) {
+               if (strstr(name, "Depth")) {
                        *type = CTL_PLAYBACK_VOLUME;
                        return strlen(name);
                }