]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: s5p-mfc: Remove firmware buf null check in s5p_mfc_load_firmware()
authorShuah Khan <shuahkh@osg.samsung.com>
Sat, 4 Nov 2017 02:01:57 +0000 (22:01 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 20:10:33 +0000 (15:10 -0500)
commita465321ac1bd90ffe2de030e29ef5738af046603
tree91a85f2f38a0d69fb695cec624c95ceaed126b0e
parentbc7eb5d7e2d70e027f5846f71b70d6c99b8f176f
media: s5p-mfc: Remove firmware buf null check in s5p_mfc_load_firmware()

s5p_mfc_load_firmware() will not get called if fw_buf.virt allocation
fails. The allocation happens very early on in the probe routine and
probe fails if allocation fails.

There is no need to check if it is null in s5p_mfc_load_firmware().
Remove the check.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c