From patchwork Fri Aug 29 03:45:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4808611 Return-Path: X-Original-To: patchwork-linux-pm@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 59805C0338 for ; Fri, 29 Aug 2014 03:45:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9516B2011D for ; Fri, 29 Aug 2014 03:45:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 034E6200DE for ; Fri, 29 Aug 2014 03:45:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752056AbaH2Dpb (ORCPT ); Thu, 28 Aug 2014 23:45:31 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:23539 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbaH2Dpa (ORCPT ); Thu, 28 Aug 2014 23:45:30 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB100C3TUFSN380@mailout4.samsung.com> for linux-pm@vger.kernel.org; Fri, 29 Aug 2014 12:45:28 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 48.37.02948.857FFF35; Fri, 29 Aug 2014 12:45:28 +0900 (KST) X-AuditID: cbfee68d-f79c46d000000b84-06-53fff758b2b1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 9B.F5.05196.857FFF35; Fri, 29 Aug 2014 12:45:28 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NB10025VUFRCY70@mmp1.samsung.com>; Fri, 29 Aug 2014 12:45:27 +0900 (KST) From: Jingoo Han To: 'Sebastian Reichel' Cc: 'Dmitry Eremin-Solenikov' , 'David Woodhouse' , linux-pm@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] charger-manager: Remove casting the return value which is a void pointer Date: Fri, 29 Aug 2014 12:45:27 +0900 Message-id: <004d01cfc33b$ac6746d0$0535d470$%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: Ac/DO6giuPeR4KBZQrKZnICorHt9hw== Content-language: ko x-cr-hashedpuzzle: G7lt KSKA LBsS L22b OIZB WPKL WtNN aOq/ adSx bQPf fXa2 hPf8 k3SY oBIs oMtc qZtt; 5; ZABiAGEAcgB5AHMAaABrAG8AdgBAAGcAbQBhAGkAbAAuAGMAbwBtADsAZAB3AG0AdwAyAEAAaQBuAGYAcgBhAGQAZQBhAGQALgBvAHIAZwA7AGoAZwAxAC4AaABhAG4AQABzAGEAbQBzAHUAbgBnAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBwAG0AQAB2AGcAZQByAC4AawBlAHIAbgBlAGwALgBvAHIAZwA7AHMAcgBlAEAAawBlAHIAbgBlAGwALgBvAHIAZwA=; Sosha1_v1; 7; {05FCF358-D641-4884-B1D3-AD28424819BD}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Fri, 29 Aug 2014 03:45:20 GMT; WwBQAEEAVABDAEgAXQAgAGMAaABhAHIAZwBlAHIALQBtAGEAbgBhAGcAZQByADoAIABSAGUAbQBvAHYAZQAgAGMAYQBzAHQAaQBuAGcAIAB0AGgAZQAgAHIAZQB0AHUAcgBuACAAdgBhAGwAdQBlACAAdwBoAGkAYwBoACAAaQBzACAAYQAgAHYAbwBpAGQAIABwAG8AaQBuAHQAZQByAA== x-cr-puzzleid: {05FCF358-D641-4884-B1D3-AD28424819BD} X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNIsWRmVeSWpSXmKPExsVy+t8zQ92I7/+DDdb84LaY9OQ9s8XElZOZ LS4vvMRq8bn3CKPF6d0lDqweO2fdZffYvELLY9OqTjaPvi2rGD0+b5ILYI3isklJzcksSy3S t0vgyph4LaPgE1vF8ftaDYwfWLsYOTkkBEwknt15yAZhi0lcuLceyObiEBJYxigx//dqJpii Se9mQyUWMUrMXnmNGcL5zSjx6dNpRpAqNgE1iS9fDrOD2CICGhL/GjaDFTELzGeU2HlmBwtI QlggWmLqh+tgNouAqsSHq6vAVvAK2EosmzWXFcIWlPgx+R5YDbOAlsT6nceZIGx5ic1r3gIN 5QA6SV3i0V9diF16ErN3/2eEKBGR2PfiHSPIXgmBG6wSF5etY4Z4wVTixKb7UIlr7BKHdk5m hjhCQOLb5EMsEENlJTYdgKqXlDi44gbLBEaJWUhOmoXkpFlITpqFZPcCRpZVjKKpBckFxUnp RYZ6xYm5xaV56XrJ+bmbGCFx2ruD8fYB60OMAhyMSjy8HSf/BwuxJpYVV+YeYjQFumgis5Ro cj4wGeSVxBsamxlZmJqYGhuZW5opifMqSv0MFhJITyxJzU5NLUgtii8qzUktPsTIxMEp1cB4 0bJGoP+wHMv35U8/sU8STVFZXjvxWO3UV+KffK2Ea86+OqilZBEXlSI/g1F4/860+yceaPQv N2G1/sF5rYN9vW7T/T813y4ceZec/1cwyEjo503nMFczCWXFf0t5szsaN29+/t6Lk8+vbdEf Ho+kRcyrY6/r2ASmTF+p8qv+kEXmvj15PR5KLMUZiYZazEXFiQB+MzfdzgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42I5/e+xgG7E9//BBquaOCwmPXnPbDFx5WRm i8sLL7FafO49wmhxeneJA6vHzll32T02r9Dy2LSqk82jb8sqRo/Pm+QCWKMaGG0yUhNTUosU UvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgHYrKZQl5pQChQISi4uV 9O0wTQgNcdO1gGmM0PUNCYLrMTJAAwnrGDMmXsso+MRWcfy+VgPjB9YuRk4OCQETiUnvZrNB 2GISF+6tB7K5OIQEFjFKzF55jRnC+c0o8enTaUaQKjYBNYkvXw6zg9giAhoS/xo2gxUxC8xn lNh5ZgcLSEJYIFpi6ofrYDaLgKrEh6urmEBsXgFbiWWz5rJC2IISPybfA6thFtCSWL/zOBOE LS+xec1boKEcQCepSzz6qwuxS09i9u7/jBAlIhL7XrxjBNkrIXCDVeLisnXMEC+YSpzYdJ9x AqPQLCQrZiFZMQvJillIZi1gZFnFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJEZwEnknvYFzV YHGIUYCDUYmHt+Pk/2Ah1sSy4srcQ4wSHMxKIryFz4BCvCmJlVWpRfnxRaU5qcWHGE2BITCR WUo0OR+YoPJK4g2NTcyMLI3MLIxMzM2VxHkPtloHCgmkJ5akZqemFqQWwfQxcXBKNTAu3507 +0/nu6/zeEUZqltcpXhUObluRHBxn/r5fvehiOn2onU1sn6TCmOUvjZoP/ortsJ+j8K7D/5b Dl71NtLWuGtxdObbZzEaohMNl9+qXSG6dvu+2xzqovMFvkq7/27xXCKa922FnLnmvSmRb35N F6+d8q1kX1qaqr3a5iTDiht7Wx4stldUYinOSDTUYi4qTgQASIuouBgDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 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/power/charger-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 9e4dab46eefd..1b87702c1753 100644 --- a/drivers/power/charger-manager.c +++ b/drivers/power/charger-manager.c @@ -1656,7 +1656,7 @@ static inline struct charger_desc *cm_get_drv_data(struct platform_device *pdev) { if (pdev->dev.of_node) return of_cm_parse_desc(&pdev->dev); - return (struct charger_desc *)dev_get_platdata(&pdev->dev); + return dev_get_platdata(&pdev->dev); } static int charger_manager_probe(struct platform_device *pdev)