From patchwork Fri Dec 16 05:59:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 33867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp794584wrn; Thu, 15 Dec 2022 22:10:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CgCpIpyiygvpBdE/rWa81NOqENdlKMhjDeRgG8TfHxVWnBJRCUuem0tm8YKuLr5ERIKsS X-Received: by 2002:a17:906:4315:b0:7c0:bc68:757e with SMTP id j21-20020a170906431500b007c0bc68757emr26477403ejm.39.1671171057534; Thu, 15 Dec 2022 22:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671171057; cv=none; d=google.com; s=arc-20160816; b=C0bfWCbPXVPXQu72EGaWTvGAqoBx5BF/vB2+82ws8rnJtxMJTrc1z3qAAc9ew1qjBv bN7DbbfFQ6A/SzqfliIVm/R9QbeQiaTU4un5P6YjYAY9mka/V91hdU2vY7btEcyGF9jS JK55sSHOdenbWdtxiFHncbHSFWwvnl9T8YKI02NavzEa36LGh0JNIdmC3rN4FGzBVgEw 6cK1zE6ZTezDEeAiZhlflA4oXR4o10e+uMT1iYZfwQQw0T0c5cIVjZ8uBwPcSIWLC6lw YqA5M/70kOb62NmBWCu6QuR59pd5YPqgXhz9XHNpnbzhCc9cpi8/u50o69vugxjj6soH 0vOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Xa0BykveSOiB4dIeRDNEqrYgVzSX+HYXVm9idj8uvh4=; b=Hq1i1zbyM/b5otkwmGEdxnFJ5hFz97+183wWA6Tqx0FZ/hxD0MVhTmriqXD00nNc+6 lmQ1ePteX8Dl4CXgAJV5DEBKWMzE/IZM7+lrWG+RlFTfUU4fewIQQBHCB3MpKLKH8/dZ vju0rY+mZufQfVybzeyfqiJ2T66MuJzSIC34Y3tqq9ep0nmd2/viv4tE+UjKX6OX0FxU WCmq0dA7y93mZyMtR/bO5Mr1pG0GX6a/tPXATbaFnVEo6aDFjiAFNIzBxyC1ELdbrTjo KB7EhjMGmdJk2Tnug32xdwmIjqM54JHYdBtwHcYNhqglx2RKCmDR66Id+/DF9aHHpRfh j7yQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a1709063f4400b007a4feae7adfsi1227870ejj.565.2022.12.15.22.10.33; Thu, 15 Dec 2022 22:10:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbiLPF7T (ORCPT + 99 others); Fri, 16 Dec 2022 00:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiLPF7S (ORCPT ); Fri, 16 Dec 2022 00:59:18 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2E8FE389D7 for ; Thu, 15 Dec 2022 21:59:16 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 810001E80D74; Fri, 16 Dec 2022 13:54:27 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PFhUgD3w8o_9; Fri, 16 Dec 2022 13:54:24 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id B0ECF1E80D72; Fri, 16 Dec 2022 13:54:24 +0800 (CST) From: Li kunyu To: dimitri.sivanich@hpe.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] sgi-gru: grukservices: remove unnecessary (void*) conversions Date: Fri, 16 Dec 2022 13:59:10 +0800 Message-Id: <20221216055910.3559-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752349862458470568?= X-GMAIL-MSGID: =?utf-8?q?1752349862458470568?= void * pointer cb, no cast type assignment required. Signed-off-by: Li kunyu --- drivers/misc/sgi-gru/grukservices.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/sgi-gru/grukservices.c b/drivers/misc/sgi-gru/grukservices.c index fa1f5a632e7f..37e804bbb1f2 100644 --- a/drivers/misc/sgi-gru/grukservices.c +++ b/drivers/misc/sgi-gru/grukservices.c @@ -425,7 +425,7 @@ int gru_get_cb_exception_detail(void *cb, static char *gru_get_cb_exception_detail_str(int ret, void *cb, char *buf, int size) { - struct gru_control_block_status *gen = (void *)cb; + struct gru_control_block_status *gen = cb; struct control_block_extended_exc_detail excdet; if (ret > 0 && gen->istatus == CBS_EXCEPTION) { @@ -452,7 +452,7 @@ static int gru_wait_idle_or_exception(struct gru_control_block_status *gen) static int gru_retry_exception(void *cb) { - struct gru_control_block_status *gen = (void *)cb; + struct gru_control_block_status *gen = cb; struct control_block_extended_exc_detail excdet; int retry = EXCEPTION_RETRY_LIMIT; @@ -475,7 +475,7 @@ static int gru_retry_exception(void *cb) int gru_check_status_proc(void *cb) { - struct gru_control_block_status *gen = (void *)cb; + struct gru_control_block_status *gen = cb; int ret; ret = gen->istatus; @@ -488,7 +488,7 @@ int gru_check_status_proc(void *cb) int gru_wait_proc(void *cb) { - struct gru_control_block_status *gen = (void *)cb; + struct gru_control_block_status *gen = cb; int ret; ret = gru_wait_idle_or_exception(gen);