Commit ef4bb63d authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

media: wl128x: Fix an error code in fm_download_firmware()

We forgot to set "ret" on this error path.

Fixes: e8454ff7 ("[media] drivers:media:radio: wl128x: FM Driver Common sources")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent c1a65ebd
......@@ -1268,8 +1268,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++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment