Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2001480rwa; Sun, 21 Aug 2022 23:32:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/gFZP0Q/bhKfLx9/L5p9dnPIqKukozzLFuW8mn4lDH4tdKADFmIAVyJQrW72Dwlr84YBv X-Received: by 2002:a05:6402:35c6:b0:43d:c340:7799 with SMTP id z6-20020a05640235c600b0043dc3407799mr14761104edc.369.1661149974202; Sun, 21 Aug 2022 23:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661149974; cv=none; d=google.com; s=arc-20160816; b=bMML6Ts+cNG0bmoQIilL3k/3K5zjK0azI8a60D6GeN8BIPJZJX4ATdd9u1SCMY/rGn /QHvI5D7X4kosKyeQkutm8MSN4fZg+C0b3HzGzf9CSZ03SzXye2tWOSCy+6RuDBaVI0L Z/aMqlrMJwVyMOKn09kK7OAPyyuym0x48udPiZ5G2SZvWack2gBzU5cnEJOUV+TJcsM9 /HrDHP4FmiBRyIFNeUjxtTMk3toDT1D7f2puEl/qz2E2CkUAZFqwhkU9EUO7q5zqNmFs OCiJUVaFDi/TdwWDckm7XfrcXkiIpKz6rOmhcFEi5BuU18nwrnj8saMY8Mf1KAcPBxdT b7ww== 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=9ZIpIfcd2RXlbTrAfCQZGVteMgwstQivMbY5qWRd2/k=; b=C8FvizFWTBszhodUIVHwjJoI793wJw6zqh++IBlQII2GjI+0HwLvYXZeiekntuOPeQ yOSaFz2d14gpGHSramQ5dHZKcmUAafzFMIm6PbjuqEuwd4/CA0pliG5ziugXrngrHaHn 73ycR0go8SP0v+z+5AdnxYyW8F0pYgh5OxKV5QeuTiUPs7s8ygNPI6iUlJfLXpGsfyMC QuFg39nWSAogVEjlHYIJr8wLV19fRezeS72xcRwel57M5NfY5ce2S1aIRtzjL0Oy4PqL aMO9BhyYy+j/3IjkY65Wpu1n8p5cZ7O8YAMAR6AzSVPdQJeBtOMBlhJOseYRph2NbHp7 9SYA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a1709062f8b00b0073064d1c27bsi7782177eji.500.2022.08.21.23.32.26; Sun, 21 Aug 2022 23:32:54 -0700 (PDT) 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 S233209AbiHVGa5 (ORCPT + 99 others); Mon, 22 Aug 2022 02:30:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbiHVGaz (ORCPT ); Mon, 22 Aug 2022 02:30:55 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E83AA17AA5; Sun, 21 Aug 2022 23:30:54 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id A449C1E80D2C; Mon, 22 Aug 2022 14:27:15 +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 17yKrVHvMQSe; Mon, 22 Aug 2022 14:27:13 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: chuanjian@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 11EE91E80CD1; Mon, 22 Aug 2022 14:27:13 +0800 (CST) From: Dong Chuanjian To: mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, kernel@nfschina.com, Dong Chuanjian Subject: [PATCH] kernel/sysctl.c: remove unnecessary (void*) conversions Date: Mon, 22 Aug 2022 14:30:49 +0800 Message-Id: <20220822063049.5115-1-chuanjian@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 remove unnecessary void* type casting Signed-off-by: Dong Chuanjian diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 205d605cacc5..324e6bbbeb34 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1052,9 +1052,9 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, return 0; } - i = (unsigned long *) data; - min = (unsigned long *) table->extra1; - max = (unsigned long *) table->extra2; + i = data; + min = table->extra1; + max = table->extra2; vleft = table->maxlen / sizeof(unsigned long); left = *lenp; -- 2.18.2