[media] mceusb: move check earlier to make smatch happy
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Feb 2013 11:22:08 +0000 (08:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Feb 2013 19:33:53 +0000 (17:33 -0200)
Smatch complains that "cmdbuf[cmdcount - length]" might go past the end
of the array.  It's an easy warning to silence by moving the limit
check earlier.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found