mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
misc: mic: return error directly
Instead of jumping to a label and then returning from there lets return directly. Signed-off-by: Sudip Mukherjee <[email protected]> Reviewed-by: Sudeep Dutt <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ba1b5c44e2
commit
fbaa72d564
1 changed files with 2 additions and 2 deletions
|
|
@ -450,14 +450,14 @@ mic_x100_load_firmware(struct mic_device *mdev, const char *buf)
|
|||
|
||||
rc = mic_x100_get_boot_addr(mdev);
|
||||
if (rc)
|
||||
goto done;
|
||||
return rc;
|
||||
/* load OS */
|
||||
rc = request_firmware(&fw, mdev->cosm_dev->firmware, &mdev->pdev->dev);
|
||||
if (rc < 0) {
|
||||
dev_err(&mdev->pdev->dev,
|
||||
"ramdisk request_firmware failed: %d %s\n",
|
||||
rc, mdev->cosm_dev->firmware);
|
||||
goto done;
|
||||
return rc;
|
||||
}
|
||||
if (mdev->bootaddr > mdev->aper.len - fw->size) {
|
||||
rc = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue