From: Jingoo Han Subject: [PATCH] iommu/omap: Remove casting the return value which is a void pointer Date: Fri, 29 Aug 2014 12:47:54 +0900 Message-ID: <004e01cfc33c$03b26230$0b172690$%han@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-language: ko 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: 'Joerg Roedel' Cc: 'Ohad Ben-Cohen' , 'Jingoo Han' , 'Linux IOMMU' , 'Laurent Pinchart' List-Id: iommu@lists.linux-foundation.org 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 --- drivers/iommu/omap-iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index e202b0c24120..02ef0ace7386 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c @@ -34,8 +34,7 @@ #include "omap-iopgtable.h" #include "omap-iommu.h" -#define to_iommu(dev) \ - ((struct omap_iommu *)platform_get_drvdata(to_platform_device(dev))) +#define to_iommu(dev) platform_get_drvdata(to_platform_device(dev)) #define for_each_iotlb_cr(obj, n, __i, cr) \ for (__i = 0; \ -- 2.0.0