Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1543664ybb; Thu, 9 Apr 2020 04:22:19 -0700 (PDT) X-Google-Smtp-Source: APiQypIs03TNJsyZxUSYrX79WkD8fEaebDpc7HapIXiIQN9+AEAnWj8sXw4HsAmbc1xsYS7hQIt1 X-Received: by 2002:a9d:ef8:: with SMTP id 111mr9308965otj.94.1586431339718; Thu, 09 Apr 2020 04:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586431339; cv=none; d=google.com; s=arc-20160816; b=ilbvW+4peflNLKrtZJBceWpYrSkil1eYfXn/0ZH+EAHnXJsHnPeCR4RqbOmrCoYxns BWxvvs7bxuFNzIA96IgDIZJxBSBPlPzjDM+daNLZBjm5nMEuIdUqdtezUO2Aifvuk/75 7T84tWv+kYL9hetyIluSkJTYw5ZjG0rYkM9heSPdDSlqG2Wi01D+ZOe5dGfwVR/IBtqH ISX6CMnHHzExsCtnejl4QVvBBzbUW+zmjJtx+dItYoyyKTQGhd7Aj+1W7twcGxvjjD8y MNN9lgBsLSt7uzA43rLlS/w5PVxW2nxYhLhHZyiZb9lDb8Ca1M6FqH+fPPaGu4GC/pqn FRtg== 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=rxI6C01Lv1L+s3LD+AyN/S79jyTUG0oAkCBzvZMA/M0=; b=caCJmfaw3WtkrazLorlM80nKbsGnLc0k1NEu4R8+CpwSLbTfcBD5FlORjz6ENyA6XH kpkU9HXMUmAkxK6Q1psjw/euOwCQkhkr9xa4KemlN/z9gmZJc8grtRrvz0+l0HtIJwlm DRvRV6Oa2dZ2NtuGxDPB1kX9cDeglWptL4iu2Fd0nSaSVgn6FJBGlLwWL3X8M3Gmgrn1 PZ8W3uXBIPWOZdi2a/+Krr1308y3sObqcxCQ2ZHPadD+MR/Hr1hWwtnK2c7rq0yUVd5z 83NMbiODSDohyxKyr/hLn4+M/0l2p+0/ZzM0n6PqnPmlPpaB6wQ+JUlTfvx6w2OZWqsX cJpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w65si3274011oif.134.2020.04.09.04.22.05; Thu, 09 Apr 2020 04:22:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726622AbgDILVa (ORCPT + 99 others); Thu, 9 Apr 2020 07:21:30 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:58406 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725972AbgDILVa (ORCPT ); Thu, 9 Apr 2020 07:21:30 -0400 Received: from ubuntu.localdomain (unknown [111.198.228.245]) by APP-05 (Coremail) with SMTP id zQCowACXn5sVBY9eVbUUAQ--.40637S2; Thu, 09 Apr 2020 19:20:54 +0800 (CST) From: Xu Wang To: perex@perex.cz, tiwai@suse.com, tglx@linutronix.de, allison@lohutok.net Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: ctxfi: Remove unnecessary cast in kfree Date: Thu, 9 Apr 2020 19:20:52 +0800 Message-Id: <20200409112052.13402-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowACXn5sVBY9eVbUUAQ--.40637S2 X-Coremail-Antispam: 1UD129KBjvJXoW7ZF1DZrW3Ww48tr1DCFWDCFg_yoW8ArWfpF 48GrsxWrW7JFWqywn5trs8XasxCanrCr4xC340kw4fCa45JF18XFn3uFWUKr47ua4fGF1F k3yjkFy5Cr90yrUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyab7Iv0xC_KF4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I 3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxV WUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAF wI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcI k0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_ Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8P5r7UUUUU== X-Originating-IP: [111.198.228.245] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBgEBA10Teu1UpQAAst 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 --- sound/pci/ctxfi/cthw20k1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c index 6e3177bcc709..015c0d676897 100644 --- a/sound/pci/ctxfi/cthw20k1.c +++ b/sound/pci/ctxfi/cthw20k1.c @@ -168,7 +168,7 @@ static int src_get_rsc_ctrl_blk(void **rblk) static int src_put_rsc_ctrl_blk(void *blk) { - kfree((struct src_rsc_ctrl_blk *)blk); + kfree(blk); return 0; } @@ -494,7 +494,7 @@ static int src_mgr_get_ctrl_blk(void **rblk) static int src_mgr_put_ctrl_blk(void *blk) { - kfree((struct src_mgr_ctrl_blk *)blk); + kfree(blk); return 0; } @@ -515,7 +515,7 @@ static int srcimp_mgr_get_ctrl_blk(void **rblk) static int srcimp_mgr_put_ctrl_blk(void *blk) { - kfree((struct srcimp_mgr_ctrl_blk *)blk); + kfree(blk); return 0; } @@ -702,7 +702,7 @@ static int amixer_rsc_get_ctrl_blk(void **rblk) static int amixer_rsc_put_ctrl_blk(void *blk) { - kfree((struct amixer_rsc_ctrl_blk *)blk); + kfree(blk); return 0; } @@ -909,7 +909,7 @@ static int dai_get_ctrl_blk(void **rblk) static int dai_put_ctrl_blk(void *blk) { - kfree((struct dai_ctrl_blk *)blk); + kfree(blk); return 0; } @@ -958,7 +958,7 @@ static int dao_get_ctrl_blk(void **rblk) static int dao_put_ctrl_blk(void *blk) { - kfree((struct dao_ctrl_blk *)blk); + kfree(blk); return 0; } @@ -1156,7 +1156,7 @@ static int daio_mgr_get_ctrl_blk(struct hw *hw, void **rblk) static int daio_mgr_put_ctrl_blk(void *blk) { - kfree((struct daio_mgr_ctrl_blk *)blk); + kfree(blk); return 0; } -- 2.17.1