Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97A29C6FD19 for ; Thu, 16 Mar 2023 08:44:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjCPIox (ORCPT ); Thu, 16 Mar 2023 04:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbjCPIor (ORCPT ); Thu, 16 Mar 2023 04:44:47 -0400 Received: from mail.nfschina.com (unknown [42.101.60.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CC32B2A7; Thu, 16 Mar 2023 01:44:45 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id E2A581A00AC8; Thu, 16 Mar 2023 16:44:44 +0800 (CST) X-Virus-Scanned: amavisd-new at nfschina.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9vrb1ZMjgv5O; Thu, 16 Mar 2023 16:44:44 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: yuzhe@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id AF0E01A00874; Thu, 16 Mar 2023 16:44:43 +0800 (CST) From: Yu Zhe To: lkundrak@v3.sk, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, liqiong@nfschina.com, Yu Zhe Subject: [PATCH] char/pcmcia: remove unnecessary (void*) conversions Date: Thu, 16 Mar 2023 16:43:55 +0800 Message-Id: <20230316084355.9195-1-yuzhe@nfschina.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe --- drivers/char/pcmcia/scr24x_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/pcmcia/scr24x_cs.c b/drivers/char/pcmcia/scr24x_cs.c index 1bdce08fae3d..24fff2c2245c 100644 --- a/drivers/char/pcmcia/scr24x_cs.c +++ b/drivers/char/pcmcia/scr24x_cs.c @@ -290,7 +290,7 @@ static int scr24x_probe(struct pcmcia_device *link) static void scr24x_remove(struct pcmcia_device *link) { - struct scr24x_dev *dev = (struct scr24x_dev *)link->priv; + struct scr24x_dev *dev = link->priv; device_destroy(scr24x_class, MKDEV(MAJOR(scr24x_devt), dev->devno)); mutex_lock(&dev->lock); -- 2.11.0