From patchwork Thu Jul 18 19:31:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasyl Gomonovych X-Patchwork-Id: 11049455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68F1E138D for ; Thu, 18 Jul 2019 19:31:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5772D28820 for ; Thu, 18 Jul 2019 19:31:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48A39288A6; Thu, 18 Jul 2019 19:31:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9B6F28820 for ; Thu, 18 Jul 2019 19:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391001AbfGRTbb (ORCPT ); Thu, 18 Jul 2019 15:31:31 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43869 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbfGRTbb (ORCPT ); Thu, 18 Jul 2019 15:31:31 -0400 Received: by mail-lj1-f195.google.com with SMTP id y17so3909008ljk.10; Thu, 18 Jul 2019 12:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qcL3LovIaG2I+4/Ya4EZq8QuwXXlyROXKp2x+863zag=; b=bxDHW8OFGKYh0iChgAPve01fDS61WHbwQNju+rrB0FSCA+XHKytTf+UIw0WXhxeDH8 IH2MQR1ydnwuDrKJB/yeqqg3tKgrXHMbBYNpTCRDxyW3+GzIub5F1P036SSsx1keDjsN 2T3AuKSXyI6IoAG1MAMqr0UdfxvVcDD+K3p6RsKKUHEEurWWIh5lRqZZuiuVCe0e2dsQ PyCLFDKcwCmNCTb17Ba+ZU2xm+QBUBwpxAocdg2IIHvMXB1hMQqChTRc0Ceyd08nr1HU 6v3l0BlgbcImFhLdwzi9fcf1BFH9uH+IslFAQvgUeSxv8aYQpoVcZwNHz2Qg3Px+RugR Bs6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qcL3LovIaG2I+4/Ya4EZq8QuwXXlyROXKp2x+863zag=; b=FWHmIdy7DdTOqgZmgrhlVXnNl2G6XLy0aul/fnGxBFma+mxpELK3JvCbadLVZqO+zY nR1tHNBDgnBBXc8NhoCILj94ZZ/No/8sUuQxQEnVPJPw+NdFcKve/jxroGya8VFu6q2r PKQkQ4NImHuOsWGBrFVoKyjmdwgTdOJ8HIvGDYfW01zpsmx8QKLZo+htmznkWjkMOU5J UQnqxwpJ5u/zmFuVY68O9jfMR1miBjaOwhdPjWvz2dqh2CaO+jjWL7RBS49Xzyredf/J VVKtQalr9VD4nJPt5jdEJ4Wdo3r+uUzl9j3DM+3c3+qP82YF6hKk4/qyVe/ZWaRh0/fA V+mQ== X-Gm-Message-State: APjAAAW/O1WSNeOlNMDLVsZUcJvHQcRkGo1KRcspxRX8M5P92kWoM4pc CBp/p9YcF/MKg3i0Wt+NfF1tpf8weyngMw== X-Google-Smtp-Source: APXvYqyVZBlbCBK1Y7Pv7LjJuRnTwXIED6u/+IBJTZFH9W7ohhUCtmgd+v2B/Rpb3qJcXdxW/jwBUw== X-Received: by 2002:a2e:870f:: with SMTP id m15mr25339251lji.223.1563478289408; Thu, 18 Jul 2019 12:31:29 -0700 (PDT) Received: from ul001888.eu.tieto.com ([91.90.160.140]) by smtp.gmail.com with ESMTPSA id x137sm4124120lff.23.2019.07.18.12.31.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 12:31:28 -0700 (PDT) From: Vasyl Gomonovych To: tyreld@linux.ibm.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Vasyl Gomonovych , linux-kernel@vger.kernel.org Subject: [PATCH] scsi: ibmvscsi: remove casting dma_alloc_coherent Date: Thu, 18 Jul 2019 21:31:12 +0200 Message-Id: <20190718193112.17709-1-gomonovych@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix allocation style Generated by: alloc_cast.cocci Signed-off-by: Vasyl Gomonovych --- drivers/scsi/ibmvscsi/ibmvscsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index 7f66a7783209..7e9b3e409851 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.c +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c @@ -715,8 +715,7 @@ static int map_sg_data(struct scsi_cmnd *cmd, /* get indirect table */ if (!evt_struct->ext_list) { - evt_struct->ext_list = (struct srp_direct_buf *) - dma_alloc_coherent(dev, + evt_struct->ext_list = dma_alloc_coherent(dev, SG_ALL * sizeof(struct srp_direct_buf), &evt_struct->ext_list_token, 0); if (!evt_struct->ext_list) {