Re: [PATCH] scsi: tcmu: Simplify 'tcmu_update_uio_info()'

From: Martin K. Petersen
Date: Tue Jun 18 2019 - 21:15:51 EST



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