Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp320410ybt; Wed, 8 Jul 2020 00:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlULigdSJTszoaMAzHsBPjvOFiUOiuXaK6W3ME0Qbih/kuZtbf6Olxf01kuMBR72CHNT0i X-Received: by 2002:a50:e8c9:: with SMTP id l9mr57895004edn.272.1594193059496; Wed, 08 Jul 2020 00:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594193059; cv=none; d=google.com; s=arc-20160816; b=xiUWkhcq4Rx/wE75KoosLwwTVqlsNJNJjv1dhEbzWkHgvRA+AWxDmDhuK4nYa+Th+M 7SDEo5EhbD5Y6+bXAlxDNLoLJRpE3jVgIqIVLiUC7SBQfCNAKwx/zM3Ky7kCRbCKX3V7 FsjWEN6K1uJjr/3A3rQ8kDC0hHSeKUEHND+0kgqLJ0g3gRWEjLdxbftoN7z0nfulE4a3 Nw7Gp8ohK2sDa0Xz4gwSRoYfqgCjvCPnIka7buK3jwy2Isd6ZfRROCXxm/ThxV7z0aTW /4rWA6U7FYsVDNV1V3lCYL6n4fD6lwIwzpkiUB4nWECoocru9rW804Qvlt2Obx89vcZ0 Mygw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ZUot/sVDzIlCLi8nVHNxgwxrSgBBMSE5LvTQVvw9qoM=; b=I1noBXIkNOust28N8kMyaVcuyj1Wzx3qJrsoJJgNACuFeIvEyW3XlVN/aOGog6uJ7K 2gNc/D2YXwEVooAFdOjkjAcwj8zYXxMrxeiV9dYuCIkumL4TQT/QvNkQyc0dy36q16We jmuFk06tTla0Ei61oo4aCEMCF/uqJm5HmPqT7Aal+RIm+zNI7TYY7XCB+/LcEX8FGr49 NjEu+jXhZIssoLlcKEk0y7SWG1yXDav9HUDST+QWHZVDLU8mcGhbauFmdUDbR3cRR0Lr OHM97awdV9xUPyk4QlLs2iELvqitFBE/hhFZzcLmv7UELZeFHhUH5mYWTzZ6uPctd3g2 15KQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nk2si15631716ejb.695.2020.07.08.00.23.55; Wed, 08 Jul 2020 00:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730324AbgGHHWu (ORCPT + 99 others); Wed, 8 Jul 2020 03:22:50 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:53318 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730047AbgGHHWt (ORCPT ); Wed, 8 Jul 2020 03:22:49 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-01 (Coremail) with SMTP id qwCowAAnCOk2dAVfs4CkBA--.31422S2; Wed, 08 Jul 2020 15:22:31 +0800 (CST) From: Xu Wang To: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, vulab@iscas.ac.cn, linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] arch: powerpc: Remove unnecessary cast in kfree() Date: Wed, 8 Jul 2020 07:22:28 +0000 Message-Id: <20200708072228.30776-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowAAnCOk2dAVfs4CkBA--.31422S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JrWxWw4rXr1rWr1xuw17Wrg_yoW3GrbEk3 yvkFnFkrW0qrsavanxXF1xGFn2y393Xrs5KrnFga9rt345Xw15C3W3ZrW8Gay8Jry0yrZx G3Z8tr98Zas3KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbzAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1l42xK82IYc2Ij64vI r41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0 cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8V AvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF 7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUY6wZUUUUU X-Originating-IP: [159.226.5.99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBwcLA102Yl76WQAAs8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang --- arch/powerpc/platforms/pseries/dlpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index 16e86ba8aa20..1f3d26806295 100644 --- a/arch/powerpc/platforms/pseries/dlpar.c +++ b/arch/powerpc/platforms/pseries/dlpar.c @@ -379,7 +379,7 @@ static void pseries_hp_work_fn(struct work_struct *work) handle_dlpar_errorlog(hp_work->errlog); kfree(hp_work->errlog); - kfree((void *)work); + kfree(work); } void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog) -- 2.17.1