mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvscic2c-pcie: Fix MISRA rule 10.3 violations
Fix total 62 violations of rule 10.3 JIRA NVIPC-3121 Change-Id: I1eae97bdbd8e1b41363469a42c66c23e8899603f Signed-off-by: cyeddu <cyeddu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3250504 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -63,13 +63,13 @@ memobj_devmngd_pin(struct vmap_ctx_t *vmap_ctx,
|
||||
pin->attach = pci_client_dmabuf_attach(vmap_ctx->pci_client_h,
|
||||
pin->dmabuf);
|
||||
if (IS_ERR_OR_NULL(pin->attach)) {
|
||||
ret = PTR_ERR(pin->attach);
|
||||
ret = (int)PTR_ERR(pin->attach);
|
||||
goto err;
|
||||
}
|
||||
|
||||
pin->sgt = dma_buf_map_attachment(pin->attach, pin->dir);
|
||||
if (IS_ERR_OR_NULL(pin->sgt)) {
|
||||
ret = PTR_ERR(pin->sgt);
|
||||
ret = (int)PTR_ERR(pin->sgt);
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -157,13 +157,13 @@ memobj_clientmngd_pin(struct vmap_ctx_t *vmap_ctx,
|
||||
*/
|
||||
pin->attach = dma_buf_attach(pin->dmabuf, &vmap_ctx->dummy_pdev->dev);
|
||||
if (IS_ERR_OR_NULL(pin->attach)) {
|
||||
ret = PTR_ERR(pin->attach);
|
||||
ret = (int)PTR_ERR(pin->attach);
|
||||
pr_err("client_mngd dma_buf_attach failed\n");
|
||||
goto err;
|
||||
}
|
||||
pin->sgt = dma_buf_map_attachment(pin->attach, pin->dir);
|
||||
if (IS_ERR_OR_NULL(pin->sgt)) {
|
||||
ret = PTR_ERR(pin->sgt);
|
||||
ret = (int)PTR_ERR(pin->sgt);
|
||||
pr_err("client_mngd dma_buf_attachment failed\n");
|
||||
goto err;
|
||||
}
|
||||
@@ -355,7 +355,7 @@ syncobj_pin(struct vmap_ctx_t *vmap_ctx,
|
||||
*/
|
||||
pin->sp = tegra_drm_get_syncpt(pin->fd, pin->syncpt_id);
|
||||
if (IS_ERR_OR_NULL(pin->sp)) {
|
||||
ret = PTR_ERR(pin->sp);
|
||||
ret = (int)PTR_ERR(pin->sp);
|
||||
pr_err("Failed to get syncpoint from id\n");
|
||||
goto err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user