Skip to content

Commit

Permalink
media: wl128x: Fix an error code in fm_download_firmware()
Browse files Browse the repository at this point in the history
We forgot to set "ret" on this error path.

Fixes: e8454ff ("[media] drivers:media:radio: wl128x: FM Driver Common sources")

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Dan Carpenter authored and mchehab committed Mar 19, 2019
1 parent c1a65eb commit ef4bb63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/media/radio/wl128x/fmdrv_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit ef4bb63

Please sign in to comment.