media: sp887x: fix a warning
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Mar 2018 19:13:58 +0000 (15:13 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:54:32 +0000 (06:54 -0400)
commit89d6e45c8af8b6e9351564a15467c90e862bbfcd
tree0480f16baa402fd51eb6ff0f302a7bb48d71ef09
parent912d2f8228be077a1743adb797ada1dfcfe99c81
media: sp887x: fix a warning

drivers/media/dvb-frontends/sp887x.c:179 sp887x_initial_setup() error: memcpy() '&buf[2]' too small (30 vs 16384)

This is actually a false alarm, but reverting the check order
makes not only for humans to review the code, but also cleans
the warning.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/sp887x.c