Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1099279pxb; Fri, 20 Nov 2020 00:41:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmJ2nmAX9lxIf1cizqWuIfQ1UvTYa2hi8zkbaKbChHvCiXUF7+ucV4O//ZfV6GyKlaXmDI X-Received: by 2002:aa7:d459:: with SMTP id q25mr6072802edr.104.1605861689288; Fri, 20 Nov 2020 00:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605861689; cv=none; d=google.com; s=arc-20160816; b=XYXSazzNL5WrKST7piRtQ0Vb1IFltPykgpEO5D9BDMI1GN7KwGKaraOaNmWXTZUVw2 KCx1PC2Fgn0tn39Z0DUq//4efgyvcNXkW7QHoJbfmxh1SjqjqSuipIKHhhelifotnCEe 3qzwq7yDihdlYb+pGsEnMvaoaOvg15MP2zi43+NeVLjX8TKe6qH9oVQuiE9IdaueKu+z 9NaArm+iy7aPK1OQP1hfBbRaGWm1qGl9fdJ5Nfbm8o8xkt4TH9JzRfF1+KBE2Th60/WZ DFECkmFsIahuWl0do8sHGK1Jd2bE11rbrBNq8AAByrGdVJ7ys3SrYlOSQPB/diXTjub0 l2fg== 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=4pmsQNRCSym6pj+C7CoZ6mSySNT95XjxjvxvRQro4OY=; b=jojCdi4+tI36OWQE7ipp0pcCKoPv+MC6FdAl4tFoshsG+i70z9kJkt3pNf7X6SUXE1 /KoosbSsPBcg22N+0V7pnbxBiCMudVcV2F2OgkrbtaSt544dGk2X/4iexWn+fTEL4HSm yF1UxEW8QWrMZuvw0rBVE9D//4ZOGHJ2mJRdwkVHmjIQXVqBK5EZSXh7JlVEy3/vmtZe CABqLf0uSUDuhwbwHntW0hYuxV/qZc2R3kf7OXSO7qaS3lfe9IAEL3MtAHKMG1hZr8Wm haesD7KG3/dVAx1eBDwRr67IobK2zHJKInVI3Jul0hJmgIec7/7RpI1aTtOutoAoSmTx i0rQ== 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 qc4si1289092ejb.188.2020.11.20.00.41.06; Fri, 20 Nov 2020 00:41:29 -0800 (PST) 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 S1727227AbgKTIhG (ORCPT + 99 others); Fri, 20 Nov 2020 03:37:06 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:42786 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727122AbgKTIhF (ORCPT ); Fri, 20 Nov 2020 03:37:05 -0500 Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-05 (Coremail) with SMTP id zQCowAA3PJQjgLdfJUBbAQ--.19842S2; Fri, 20 Nov 2020 16:36:52 +0800 (CST) From: Xu Wang To: jinpu.wang@cloud.ionos.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] scsi: pm8001: remove casting kcalloc Date: Fri, 20 Nov 2020 08:36:48 +0000 Message-Id: <20201120083648.9319-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAA3PJQjgLdfJUBbAQ--.19842S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtr13Ary7Jr4ftF13Kr45Jrb_yoWftrc_ur W7trn7Kr1UCr4fCa47C3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ernel@vger.kernel.org Remove casting the values returned by kcalloc. Signed-off-by: Xu Wang --- drivers/scsi/pm8001/pm8001_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 3cf3e58b6979..ac0e598b8ac2 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -1187,8 +1187,8 @@ pm8001_init_ccb_tag(struct pm8001_hba_info *pm8001_ha, struct Scsi_Host *shost, goto err_out; /* Memory region for ccb_info*/ - pm8001_ha->ccb_info = (struct pm8001_ccb_info *) - kcalloc(ccb_count, sizeof(struct pm8001_ccb_info), GFP_KERNEL); + pm8001_ha->ccb_info = + kcalloc(ccb_count, sizeof(struct pm8001_ccb_info), GFP_KERNEL); if (!pm8001_ha->ccb_info) { PM8001_FAIL_DBG(pm8001_ha, pm8001_printk ("Unable to allocate memory for ccb\n")); -- 2.17.1