[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1blyuxtv3.fsf@oracle.com>
Date: Tue, 18 Jun 2019 21:10:40 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: martin.petersen@...cle.com, linux-scsi@...r.kernel.org,
target-devel@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] scsi: tcmu: Simplify 'tcmu_update_uio_info()'
Christophe,
> Use 'kasprintf()' instead of:
> - snprintf(NULL, 0...
> - kmalloc(...
> - snprintf(...
>
> This is less verbose and saves 7 bytes (i.e. the space for '/(null)') if
> 'udev->dev_config' is NULL.
Applied to 5.3/scsi-queue. Thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists