]> err.no Git - linux-2.6/blobdiff - drivers/char/hvsi.c
V4L/DVB (3500): Ringbuffer: don't reset pointers to zero
[linux-2.6] / drivers / char / hvsi.c
index a22aa940e01e15356e81164236853526c16bfb39..a9522189fc9efeaa82dab6d3b479df11d89a8412 100644 (file)
@@ -197,7 +197,7 @@ static inline void print_state(struct hvsi_struct *hp)
        };
        const char *name = state_names[hp->state];
 
-       if (hp->state > (sizeof(state_names)/sizeof(char*)))
+       if (hp->state > ARRAY_SIZE(state_names))
                name = "UNKNOWN";
 
        pr_debug("hvsi%i: state = %s\n", hp->index, name);