media: wl128x: Fix some error handling in fmc_prepare()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Mar 2019 14:41:38 +0000 (10:41 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 29 Mar 2019 11:44:12 +0000 (07:44 -0400)
commitb4a7113f84128ed0acbc5ff886bd5cf4d87ab733
tree5b5984b0d7e4eda050da57a4f30ed70df7c4594c
parent9c2ccc324b3a6cbc865ab8b3e1a09e93d3c8ade9
media: wl128x: Fix some error handling in fmc_prepare()

The st_register() returns have changed over time, but these days it
never returns -1.  We should just be checking for any negative error
codes.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/radio/wl128x/fmdrv_common.c