From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suman Anna Subject: Re: [PATCH] iommu/omap: Remove casting the return value which is a void pointer Date: Thu, 12 Sep 2013 17:30:11 -0500 Message-ID: <52324073.8090101@ti.com> References: <005601cead1e$ffe78470$ffb68d50$%han@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <005601cead1e$ffe78470$ffb68d50$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Jingoo Han Cc: 'Andrew Morton' , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On 09/09/2013 12:39 AM, Jingoo Han wrote: > Casting the return value which is a void pointer is redundant. > The conversion from void pointer to any other pointer type is > guaranteed by the C programming language. > > Signed-off-by: Jingoo Han Thanks, LGTM. > --- > drivers/iommu/omap-iopgtable.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/omap-iopgtable.h b/drivers/iommu/omap-iopgtable.h > index f4003d5..b6f9a51 100644 > --- a/drivers/iommu/omap-iopgtable.h > +++ b/drivers/iommu/omap-iopgtable.h > @@ -95,4 +95,4 @@ static inline phys_addr_t omap_iommu_translate(u32 d, u32 va, u32 mask) > #define iopte_offset(iopgd, da) (iopgd_page_vaddr(iopgd) + iopte_index(da)) > > #define to_iommu(dev) \ > - ((struct omap_iommu *)platform_get_drvdata(to_platform_device(dev))) > + (platform_get_drvdata(to_platform_device(dev))) >