mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
media: wl128x: Fix an error code in fm_download_firmware()
[ Upstream commitef4bb63dc1] We forgot to set "ret" on this error path. Fixes:e8454ff7b9("[media] drivers:media:radio: wl128x: FM Driver Common sources") 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ad58489fa4
commit
e53ee1dce1
@@ -1278,8 +1278,9 @@ static int fm_download_firmware(struct fmdev *fmdev, const u8 *fw_name)
|
||||
|
||||
switch (action->type) {
|
||||
case ACTION_SEND_COMMAND: /* Send */
|
||||
if (fmc_send_cmd(fmdev, 0, 0, action->data,
|
||||
action->size, NULL, NULL))
|
||||
ret = fmc_send_cmd(fmdev, 0, 0, action->data,
|
||||
action->size, NULL, NULL);
|
||||
if (ret)
|
||||
goto rel_fw;
|
||||
|
||||
cmd_cnt++;
|
||||
|
||||
Reference in New Issue
Block a user