From: Markus Elfring <Markus.Elfring@web.de>
To: Alex Dewar <alex.dewar@gmx.co.uk>
Cc: Allison Randal <allison@lohutok.net>,
Arnd Bergmann <arnd@arndb.de>,
Julia Lawall <julia.lawall@inria.fr>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Himanshu Madhani <hmadhani@marvell.com>,
"James E. J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Richard Fontana <rfontana@redhat.com>,
Sathya Prakash <sathya.prakash@broadcom.com>,
Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>,
Thomas Gleixner <tglx@linutronix.de>,
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
Date: Tue, 7 Apr 2020 18:56:28 +0200 [thread overview]
Message-ID: <807090f6-f2ee-0e5b-6e35-b0c148c7a22f@web.de> (raw)
In-Reply-To: <20200407160213.qh64de6ebrj7qkmx@lenovo-laptop>
>> …
>>> +++ 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 = dma_alloc_coherent(&ha->pdev->dev, ELS_CMD_MAP_SIZE,
>>> - &els_cmd_map_dma, GFP_KERNEL);
>>> + &els_cmd_map_dma, GFP_KERNEL);
>>> if (!els_cmd_map) {
>> …
>>
>> I find it safer to integrate such source code reformattings by
>> another update step which will be separated from the proposed deletion
>> 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?
Regards,
Markus
next prev parent reply other threads:[~2020-04-07 16:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 11:14 Markus Elfring
2020-04-07 16:02 ` Alex Dewar
2020-04-07 16:56 ` Markus Elfring [this message]
2020-04-09 11:42 ` Alex Dewar
2020-04-09 14:06 ` Markus Elfring
-- strict thread matches above, loose matches on Subject: below --
2020-04-03 17:58 Alex Dewar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=807090f6-f2ee-0e5b-6e35-b0c148c7a22f@web.de \
--to=markus.elfring@web.de \
--cc=MPT-FusionLinux.pdl@broadcom.com \
--cc=aacraid@microsemi.com \
--cc=alex.dewar@gmx.co.uk \
--cc=allison@lohutok.net \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=hmadhani@marvell.com \
--cc=jejb@linux.ibm.com \
--cc=julia.lawall@inria.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=rfontana@redhat.com \
--cc=sathya.prakash@broadcom.com \
--cc=suganath-prabu.subramani@broadcom.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®