Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1106726pxb; Fri, 20 Nov 2020 01:00:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkWvy7OF3rJc9FNejTHYipZu3y5UPovFEO/zweDXZUnODhXHxOAgIZ6ulX9WRqqdIlk7a6 X-Received: by 2002:a17:906:5a8b:: with SMTP id l11mr24690812ejq.99.1605862814414; Fri, 20 Nov 2020 01:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605862814; cv=none; d=google.com; s=arc-20160816; b=PNicTdCPYHiUbinQ6G6G+2tBnDfUIUNfzjpNixm6heWGiqZ5gEklvkdGGq+GngC0nP jsjrIdvPuOwh6FFN2Djr29J5cNfCRzli0zAdgvQ+mXz1e3neeFKqZ/Cfum6iZckpeCg2 Zl5T65jzt4+vALwZ0Rm4NAJMs/sCChJceZcFsZ+ic6WVvFhfLUFy2nA90VtPrzY9GN+k 0ph+EdyLfi9/gkHi4AbRS1Ze8Kapa0vF2+I/9Ck1kzXEIvOrhUxWTiSh9hkxiumJjCKC etKqEVDrDClgC76GACCiFl0TyNtdOHPhKr1ERXP8rhMEGifRh265N+X5Q7HaeO+RQaAK HiiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EiYc52m2tsrSbLYvJdrgoMyjgl7EaGY6/zDPA50tx08=; b=C+65rhPjVcV3jB0ABtOm1Of0vAm9VYP6TmE9kCfbPAyhYanymyaKwvGmPKFeBAEltO d8wIHAaIms67mpPDJxtOhNF28T6RmvrN1f8mu8A3242BrJIu4sQPB69DB7wu8J1LM75e lqodAZyKiCcz+ptD6svXCdWCwqJKBrdEmWF91sVfao5S8J1gkR4GW4P/16INAFicHLH8 pr7mT7APSldGwtbZEfv1NpvXFY/Ob3HqmNDoqkFv56aRozA0xIOoiXmdWelc2SufAmm1 a30TMO24KGRyuJljG1EpR6Tvzy082Y2AjCXZrGFGlYhcl8MsdX/B/2DNpN0RupsBW+E4 D2sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=Cec7EiJ8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ionos.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1304496ejj.163.2020.11.20.00.59.51; Fri, 20 Nov 2020 01:00:14 -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; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=Cec7EiJ8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ionos.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727043AbgKTI6A (ORCPT + 99 others); Fri, 20 Nov 2020 03:58:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgKTI57 (ORCPT ); Fri, 20 Nov 2020 03:57:59 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88263C0613CF for ; Fri, 20 Nov 2020 00:57:58 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id f20so11806673ejz.4 for ; Fri, 20 Nov 2020 00:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EiYc52m2tsrSbLYvJdrgoMyjgl7EaGY6/zDPA50tx08=; b=Cec7EiJ8XEubQlVqSJhu5SN8P/y6QMztowV+3Oh10KW9i2az9joSNkuMdsf03XPQ/b ExZlIb5qSZzYAG09AqGskUYMOJJWaZ9X47eEWnPOziyeYxQ8oSZbUJqZJIeAhwtwCN7Y 3qaOtiiC3OLg2DnvQ9rmgnZeuqdtiYc0INLx3dU2+Ig3BJc6FCq7fr7RgjoKGROhM+Lp Uxwp/M8MIj+SdaCZizGoaqWDJJN0eHtcqlU1gOB/36e9QE4/2+2ZMojsKZHahhmMiv4K mUU8AzV8ZH2yH374RPA0puFu8G/xf3hf7ANBWfT7yg1uN//sd+FDpgXKgaGqkM05Z3Nb 4UNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EiYc52m2tsrSbLYvJdrgoMyjgl7EaGY6/zDPA50tx08=; b=P+VhjFSLof+N/awd8p6Z+4JfJFE1HKeQjLttbltTN8K7ozYjd9MfP/NX6IxVxV8gR8 zl2TDsS4MC9gjx1EiScK5ttD3eRAPy/jUtCrGVmj/UUFD4riq8I7dv2uWHmDwVtbrXTa YY2JnMuWBzTXvFb7McDg/hInNTCkeVog9sFss/DPorspyVMX3eHngNkk9Osmh61D40AY Wc/t2mZV8uVv+F/xoVTQsKkUFzPczT0+z21eM4Z7V6hZjDkPeCtysDwolQKX9JR3m4T0 ZKKCZdw10hMS5bIhRo88qvJ+BI6LcFNNdtzXEDinQoV/68AFF6XwKa4p0/XnHINfbSHY iU8Q== X-Gm-Message-State: AOAM532K8+DVUTjCsyK6buNl2gSaXHF+WmiPbsQnBl4Ibu6TmSNcxBfk F4rsxsRYw6ECKPpF4ginwVk23h1BTb5XFEzy6WSXqg== X-Received: by 2002:a17:906:6a51:: with SMTP id n17mr14315782ejs.478.1605862677249; Fri, 20 Nov 2020 00:57:57 -0800 (PST) MIME-Version: 1.0 References: <20201120083648.9319-1-vulab@iscas.ac.cn> In-Reply-To: <20201120083648.9319-1-vulab@iscas.ac.cn> From: Jinpu Wang Date: Fri, 20 Nov 2020 09:57:46 +0100 Message-ID: Subject: Re: [PATCH] scsi: pm8001: remove casting kcalloc To: Xu Wang Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Linux SCSI Mailinglist , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 9:36 AM Xu Wang wrote: > > Remove casting the values returned by kcalloc. > > Signed-off-by: Xu Wang Acked-by: Jack Wang Thanks Xu! > --- > 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 >