Home
last modified time | relevance | path

Searched hist:"22 c2f35f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/target/
H A Dtarget_core_user.c22c2f35f Sun Jun 16 02:02:20 CDT 2019 Christophe JAILLET <christophe.jaillet@wanadoo.fr> scsi: tcmu: Simplify tcmu_update_uio_info()

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.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
22c2f35f Sun Jun 16 02:02:20 CDT 2019 Christophe JAILLET <christophe.jaillet@wanadoo.fr> scsi: tcmu: Simplify tcmu_update_uio_info()

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.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>