Loading drivers/media/platform/msm/vidc/msm_v4l2_vidc.c +1 −1 Original line number Diff line number Diff line Loading @@ -479,7 +479,7 @@ static int msm_vidc_probe(struct platform_device *pdev) mutex_lock(&vidc_driver->lock); vidc_driver->num_cores--; mutex_unlock(&vidc_driver->lock); rc = PTR_ERR(core->device); rc = PTR_ERR(core->device) ?: -EBADHANDLE; if (rc != -EPROBE_DEFER) dprintk(VIDC_ERR, "Failed to create HFI device\n"); else Loading drivers/media/platform/msm/vidc/msm_vidc_res_parse.c +1 −1 Original line number Diff line number Diff line Loading @@ -277,7 +277,7 @@ static int msm_vidc_load_bus_vectors(struct msm_vidc_platform_resources *res) bus->sessions_supported = configs; bus->pdata = msm_bus_pdata_from_node(pdev, child_node); if (IS_ERR_OR_NULL(bus->pdata)) { rc = PTR_ERR(bus->pdata); rc = PTR_ERR(bus->pdata) ?: -EBADHANDLE; dprintk(VIDC_ERR, "Failed to get bus pdata: %d\n", rc); break; } Loading drivers/media/platform/msm/vidc/q6_hfi.c +2 −3 Original line number Diff line number Diff line Loading @@ -1222,7 +1222,7 @@ static int q6_hfi_iommu_attach(struct q6_hfi_device *device) if (IS_ERR_OR_NULL(domain)) { dprintk(VIDC_ERR, "Failed to get domain: %s\n", iommu_map->name); rc = IS_ERR(domain) ? PTR_ERR(domain) : -EINVAL; rc = PTR_ERR(domain) ?: -EINVAL; break; } dprintk(VIDC_DBG, "Attaching domain(id:%d) %p to group %p\n", Loading Loading @@ -1393,8 +1393,7 @@ int q6_hfi_initialize(struct hfi_device *hdev, u32 device_id, hdev->hfi_device_data = q6_hfi_get_device(device_id, res, callback); if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; rc = PTR_ERR(hdev->hfi_device_data) ?: -EINVAL; goto err_hfi_init; } Loading drivers/media/platform/msm/vidc/venus_hfi.c +3 −4 Original line number Diff line number Diff line Loading @@ -637,7 +637,7 @@ static int venus_hfi_iommu_attach(struct venus_hfi_device *device) if (IS_ERR_OR_NULL(domain)) { dprintk(VIDC_ERR, "Failed to get domain: %s\n", iommu_map->name); rc = PTR_ERR(domain); rc = PTR_ERR(domain) ?: -EINVAL; break; } rc = iommu_attach_group(domain, group); Loading Loading @@ -2928,7 +2928,7 @@ static inline int venus_hfi_init_clocks(struct msm_vidc_platform_resources *res, if (IS_ERR_OR_NULL(cl->clk)) { dprintk(VIDC_ERR, "Failed to get clock: %s\n", cl->name); rc = PTR_ERR(cl->clk); rc = PTR_ERR(cl->clk) ?: -EINVAL; cl->clk = NULL; goto err_clk_get; } Loading Loading @@ -3978,8 +3978,7 @@ int venus_hfi_initialize(struct hfi_device *hdev, u32 device_id, hdev->hfi_device_data = venus_hfi_get_device(device_id, res, callback); if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; rc = PTR_ERR(hdev->hfi_device_data) ?: -EINVAL; goto err_venus_hfi_init; } Loading Loading
drivers/media/platform/msm/vidc/msm_v4l2_vidc.c +1 −1 Original line number Diff line number Diff line Loading @@ -479,7 +479,7 @@ static int msm_vidc_probe(struct platform_device *pdev) mutex_lock(&vidc_driver->lock); vidc_driver->num_cores--; mutex_unlock(&vidc_driver->lock); rc = PTR_ERR(core->device); rc = PTR_ERR(core->device) ?: -EBADHANDLE; if (rc != -EPROBE_DEFER) dprintk(VIDC_ERR, "Failed to create HFI device\n"); else Loading
drivers/media/platform/msm/vidc/msm_vidc_res_parse.c +1 −1 Original line number Diff line number Diff line Loading @@ -277,7 +277,7 @@ static int msm_vidc_load_bus_vectors(struct msm_vidc_platform_resources *res) bus->sessions_supported = configs; bus->pdata = msm_bus_pdata_from_node(pdev, child_node); if (IS_ERR_OR_NULL(bus->pdata)) { rc = PTR_ERR(bus->pdata); rc = PTR_ERR(bus->pdata) ?: -EBADHANDLE; dprintk(VIDC_ERR, "Failed to get bus pdata: %d\n", rc); break; } Loading
drivers/media/platform/msm/vidc/q6_hfi.c +2 −3 Original line number Diff line number Diff line Loading @@ -1222,7 +1222,7 @@ static int q6_hfi_iommu_attach(struct q6_hfi_device *device) if (IS_ERR_OR_NULL(domain)) { dprintk(VIDC_ERR, "Failed to get domain: %s\n", iommu_map->name); rc = IS_ERR(domain) ? PTR_ERR(domain) : -EINVAL; rc = PTR_ERR(domain) ?: -EINVAL; break; } dprintk(VIDC_DBG, "Attaching domain(id:%d) %p to group %p\n", Loading Loading @@ -1393,8 +1393,7 @@ int q6_hfi_initialize(struct hfi_device *hdev, u32 device_id, hdev->hfi_device_data = q6_hfi_get_device(device_id, res, callback); if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; rc = PTR_ERR(hdev->hfi_device_data) ?: -EINVAL; goto err_hfi_init; } Loading
drivers/media/platform/msm/vidc/venus_hfi.c +3 −4 Original line number Diff line number Diff line Loading @@ -637,7 +637,7 @@ static int venus_hfi_iommu_attach(struct venus_hfi_device *device) if (IS_ERR_OR_NULL(domain)) { dprintk(VIDC_ERR, "Failed to get domain: %s\n", iommu_map->name); rc = PTR_ERR(domain); rc = PTR_ERR(domain) ?: -EINVAL; break; } rc = iommu_attach_group(domain, group); Loading Loading @@ -2928,7 +2928,7 @@ static inline int venus_hfi_init_clocks(struct msm_vidc_platform_resources *res, if (IS_ERR_OR_NULL(cl->clk)) { dprintk(VIDC_ERR, "Failed to get clock: %s\n", cl->name); rc = PTR_ERR(cl->clk); rc = PTR_ERR(cl->clk) ?: -EINVAL; cl->clk = NULL; goto err_clk_get; } Loading Loading @@ -3978,8 +3978,7 @@ int venus_hfi_initialize(struct hfi_device *hdev, u32 device_id, hdev->hfi_device_data = venus_hfi_get_device(device_id, res, callback); if (IS_ERR_OR_NULL(hdev->hfi_device_data)) { rc = PTR_ERR(hdev->hfi_device_data); rc = !rc ? -EINVAL : rc; rc = PTR_ERR(hdev->hfi_device_data) ?: -EINVAL; goto err_venus_hfi_init; } Loading