Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1561404ybb; Thu, 9 Apr 2020 04:45:09 -0700 (PDT) X-Google-Smtp-Source: APiQypI1KiGDiKpuPGIHZF0QyeG3BBdBebz/e9bmsnKYJwcMddSCbrlfdFMI7jIQHnrqO92MduBq X-Received: by 2002:ad4:4c85:: with SMTP id bs5mr12316345qvb.212.1586432708953; Thu, 09 Apr 2020 04:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586432708; cv=none; d=google.com; s=arc-20160816; b=J+JE2yhZS/8Tcuxq92rCMMMeS6Uab8BiAkzNxEOW8/fGzrMcC0/bTD7go6r0ic0jD8 Jay0EZCKqRN6MOKo2WDhJrytzovjwf+LFpD98Xvut1wSwiY+8o8Lhho0CMCQXltgRo1J jdbcjfj+FjqvXE+r8OX4PZyPForcqm1AyBZhQePXZ8hgitg8taRVQ90LNJmiPL6P6JMB YLlf+75TzLHnAgrNDDCejl4y7ePdXKq5ezcQHfnACdG5Z9YnmiawEeu5SBfaEfzNu/id UcwXzZZ4zoFVfukf8EOAbCU75NNI5uEyU0xWbawSztd5BHBhaepEJP4R/pD+ZAO43INK MFIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tzhnEE9eBKw8vMzlCUA4pbhNd6SGItHwBRb1JQG7cfc=; b=rjTgRveC8U2wgNXdELU3C4KioTrP9AE1ZXgcQd4nS9cOg19YAHL8pI9QfsX2QJ8rdv gVwhSWaWho/xzPS1nkzoplxSO/akRarcYZaeYitksA2Hc2YEVNE1wclLrrOeuw0PBCg0 S/reah5222phUZ8Ay3wuNyCMOWsIuO5uXs6Ko3EaP8oJ5bLaDqggum9Qd9tl1ZTYq+mC gt9MB5TdXM3RAme2EY1QPL2A2hIbGviprf+pk6RI12+xAZsIbVBKVUE0YsxdF4EG/91X 02ENWXxi1hlPTOT9O8BpQyMQ0OKZhNWoI6f8WJKtie64I8qFxUCnZpWvODIqLz+hDIgi uLMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=HTXXTn7q; 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 d4si5597573qkk.353.2020.04.09.04.44.54; Thu, 09 Apr 2020 04:45:08 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=HTXXTn7q; 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 S1726666AbgDILmy (ORCPT + 99 others); Thu, 9 Apr 2020 07:42:54 -0400 Received: from mout.gmx.net ([212.227.17.21]:38561 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbgDILmy (ORCPT ); Thu, 9 Apr 2020 07:42:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586432547; bh=zXoV8mONuOHe3NZaogQahCljW9xYioAIbgcWd2tUaVU=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=HTXXTn7q4GZuBcnzUvqu6M4v+rQaB/qHDMl2sNF0Ggckk0UAWjzm1PJDCkfm6q/mu nJaZDVYYPTNUW9iPVPzfj0Nx4s+1rH9mwtx33OCmJb730CO3HvsnSGcWv+k9pYFdlt JfhvCwz9oA3exGDnioQH2U2HIkTMB1Pb2zL51PmA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from medion ([82.19.195.159]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N6bfq-1jEVjw420M-018507; Thu, 09 Apr 2020 13:42:27 +0200 Date: Thu, 9 Apr 2020 12:42:18 +0100 From: Alex Dewar To: Markus Elfring Cc: Allison Randal , Arnd Bergmann , Julia Lawall , Greg Kroah-Hartman , Himanshu Madhani , "James E. J. Bottomley" , "Martin K. Petersen" , Richard Fontana , Sathya Prakash , Suganath Prabu Subramani , Thomas Gleixner , linux-scsi@vger.kernel.org, aacraid@microsemi.com, MPT-FusionLinux.pdl@broadcom.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: Remove unnecessary calls to memset after dma_alloc_coherent Message-ID: <20200409114218.5muicchv37ulrjxf@medion> References: <20200407160213.qh64de6ebrj7qkmx@lenovo-laptop> <807090f6-f2ee-0e5b-6e35-b0c148c7a22f@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <807090f6-f2ee-0e5b-6e35-b0c148c7a22f@web.de> X-Provags-ID: V03:K1:4zeiGXMkks1kx7Grv2qN9KRNpqbPHQnG9kRTNUVQ/dMG/lGeSUe LUIgWwH6+C6/jTv0YehqdzYSutUKOeP2eDeCGEMuYo0nqdObmRrBGjcGJXp/XEHfeymgBue ppuQWTFz2bZ2nJKrehU1PPm19gXETpwWPm5CJcQ1t5wABXPFGazd6o1Wwbzikt2WUrtVPYm BfZ/LNKHYKhg4FU5I5RoQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:MkITTkrvp20=:Ipi8kwJdrolvAArUjDpLSq jlweAMsLyRwR6anr8m9I9AqWrZa6j5dbjytVg5jz2QVhEgVvHJgrfwY1DvIdXN3Pu6FQGJ/Jf wLN/ustLTbtYIuDXWKfu6jkh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G6iHvUvAbe5aJ ebmXdBMH4a7wCbAkrmVlmXzrPk16efgjbjzGiZg9gOOy7IyRX+NvnwZAO7QlqhbzVLtwNxJhj CfLZfQyOrEV5Dxe3h Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 06:56:28PM +0200, Markus Elfring wrote: > >> =E2=80=A6 > >>> +++ b/drivers/scsi/qla2xxx/qla_mbx.c > >>> @@ -4887,15 +4887,13 @@ qla25xx_set_els_cmds_supported(scsi_qla_host= _t *vha) > >>> "Entered %s.\n", __func__); > >>> > >>> els_cmd_map =3D dma_alloc_coherent(&ha->pdev->dev, ELS_CMD_MAP_SIZ= E, > >>> - &els_cmd_map_dma, GFP_KERNEL); > >>> + &els_cmd_map_dma, GFP_KERNEL); > >>> if (!els_cmd_map) { > >> =E2=80=A6 > >> > >> I find it safer to integrate such source code reformattings by > >> another update step which will be separated from the proposed deletio= n > >> of unwanted function calls. > > > > Good point. This whitespace was autoformatted by Coccinelle, > > probably due to my bad SmPL skills. > > Some system factors can be involved here. > > * The source code formatting can occasionally be improvable > in further ways (despite of help by a software like Coccinelle). > > * A change mixture can become more challenging. > > * Would you like to extend your skills in corresponding areas anyhow? Sure, I'd love to. Are there any resources you'd recommend? I'm just starting out with kernel stuff and would be grateful for any pointers you can offer :-) Best, Alex > > Regards, > Markus