From patchwork Mon Sep 9 05:49:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2859521 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 75831BF43F for ; Mon, 9 Sep 2013 05:49:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA1352024A for ; Mon, 9 Sep 2013 05:49:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9913D2022D for ; Mon, 9 Sep 2013 05:49:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234Ab3IIFtR (ORCPT ); Mon, 9 Sep 2013 01:49:17 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:62833 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075Ab3IIFtQ (ORCPT ); Mon, 9 Sep 2013 01:49:16 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSU00C8BG63YNO0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Mon, 09 Sep 2013 14:49:15 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 0F.7E.30629.B516D225; Mon, 09 Sep 2013 14:49:15 +0900 (KST) X-AuditID: cbfee68d-b7fe86d0000077a5-16-522d615bbeeb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FD.2C.09055.A516D225; Mon, 09 Sep 2013 14:49:15 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSU00B71G62W0A0@mmp2.samsung.com>; Mon, 09 Sep 2013 14:49:14 +0900 (KST) From: Jingoo Han To: 'Jean-Christophe PLAGNIOL-VILLARD' Cc: 'Tomi Valkeinen' , linux-fbdev@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] video: au1100fb: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:49:14 +0900 Message-id: <005c01cead20$50fe87e0$f2fb97a0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6tIE03v1qeEid3T8yvUU3Qyl6xWQ== Content-language: ko x-cr-hashedpuzzle: A7T3 FZPa LfiC MGHk MxGu NOFj SJ+S U82o W3iO a4nt eXkT hV45 m7uB nn/a o9kZ pMfv; 4; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcABsAGEAZwBuAGkAbwBqAEAAagBjAHIAbwBzAG8AZgB0AC4AYwBvAG0AOwB0AG8AbQBpAC4AdgBhAGwAawBlAGkAbgBlAG4AQAB0AGkALgBjAG8AbQA=; Sosha1_v1; 7; {6AFA0C90-EAA1-4196-8878-0D0DBFE5780F}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:49:08 GMT; WwBQAEEAVABDAEgAXQAgAHYAaQBkAGUAbwA6ACAAYQB1ADEAMQAwADAAZgBiADoAIABSAGUAbQBvAHYAZQAgAGMAYQBzAHQAaQBuAGcAIAB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1s+/xebA4vHqwh0Wj74tqxg9jt/YzuTxeZNcAEtUA6NNRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr4dpgmhIW66 FjCNEbq+IUFwPUYGaCBhHWPGhq7J7AV72CrOv5jN2MC4jbWLkZNDQsBE4sKjfkYIW0ziwr31 bF2MXBxCAtMZJbo/tbNCOL8YJc6sW8YEUsUmoCbx5cthdhBbRMBOYuHFS2CTmAXyJbYsaQOz hQWiJe4fu8AMYrMIqErMvbOJDcTmFbCVuH9qHguELSjxY/I9FoheLYn1O48zQdjyEpvXvAXq 5QC6SF3i0V9diFV6En9nr4QqEZHY9+Id1NEHWCVe3q6CKDeVaOpVmsAoNAvJgllIFsxCsmAW kkkLGFlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgTH/DOpHYwrGywOMQpwMCrx8Er81wkS Yk0sK67MPcQowcGsJMJ7/jlQiDclsbIqtSg/vqg0J7X4EGMy0P8TmaVEk/OB6SivJN7Q2MTM yNLIzMLIxNycNGElcd4DrdaBQgLpiSWp2ampBalFMFuYODilGhgj600imVzWPmw4X7ZzYbpW WMjKlMbEH+v+vw6XMphYXhSzMOlSc4vIUr7b9QpHHyR4Oczf7C17Pvf1pPPXUxvDJ6lv2M9h cYrHrni/lkzBBC2//ee2n2fZVeL+U7szxTne5P7jypCrTee+ppW3nS70koh1nN4a2Fh9XJB9 qVVQ6B2WhYYXViixFGckGmoxFxUnAgC05H6XPQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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/video/au1100fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c index a54ccdc..248abd5 100644 --- a/drivers/video/au1100fb.c +++ b/drivers/video/au1100fb.c @@ -588,7 +588,7 @@ int au1100fb_drv_remove(struct platform_device *dev) if (!dev) return -ENODEV; - fbdev = (struct au1100fb_device *) platform_get_drvdata(dev); + fbdev = platform_get_drvdata(dev); #if !defined(CONFIG_FRAMEBUFFER_CONSOLE) && defined(CONFIG_LOGO) au1100fb_fb_blank(VESA_POWERDOWN, &fbdev->info);