From: Maninder Singh <maninder1.s@samsung.com> To: oded.gabbay@gmail.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: pankaj.m@samsung.com, Maninder Singh <maninder1.s@samsung.com> Subject: [RFC][PATCH 1/1] drm/amdkfd: Remove redundant pdd validation Date: Mon, 29 Jun 2015 10:03:27 +0530 [thread overview] Message-ID: <1435552407-39924-1-git-send-email-maninder1.s@samsung.com> (raw) pdd is already dereferenced before this check. So it is redundtant to validate pdd here. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 8a1f999..4dbc4e5 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -431,8 +431,7 @@ void kfd_unbind_process_from_device(struct kfd_dev *dev, unsigned int pasid) * We don't call amd_iommu_unbind_pasid() here * because the IOMMU called us. */ - if (pdd) - pdd->bound = false; + pdd->bound = false; mutex_unlock(&p->mutex); } -- 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: Maninder Singh <maninder1.s@samsung.com> To: oded.gabbay@gmail.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Maninder Singh <maninder1.s@samsung.com>, pankaj.m@samsung.com Subject: [RFC][PATCH 1/1] drm/amdkfd: Remove redundant pdd validation Date: Mon, 29 Jun 2015 10:03:27 +0530 [thread overview] Message-ID: <1435552407-39924-1-git-send-email-maninder1.s@samsung.com> (raw) pdd is already dereferenced before this check. So it is redundtant to validate pdd here. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 8a1f999..4dbc4e5 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -431,8 +431,7 @@ void kfd_unbind_process_from_device(struct kfd_dev *dev, unsigned int pasid) * We don't call amd_iommu_unbind_pasid() here * because the IOMMU called us. */ - if (pdd) - pdd->bound = false; + pdd->bound = false; mutex_unlock(&p->mutex); } -- 1.7.9.5 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2015-06-29 4:34 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-29 4:33 Maninder Singh [this message] 2015-06-29 4:33 ` [RFC][PATCH 1/1] drm/amdkfd: Remove redundant pdd validation Maninder Singh 2015-07-09 8:47 ` Oded Gabbay 2015-07-09 8:47 ` Oded Gabbay
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1435552407-39924-1-git-send-email-maninder1.s@samsung.com \ --to=maninder1.s@samsung.com \ --cc=airlied@linux.ie \ --cc=dri-devel@lists.freedesktop.org \ --cc=linux-kernel@vger.kernel.org \ --cc=oded.gabbay@gmail.com \ --cc=pankaj.m@samsung.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.