commit | 22c2f35f49d474fa093b227253941980886d7b1b | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Sun Jun 16 09:02:20 2019 +0200 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Thu Jun 20 15:37:02 2019 -0400 |
tree | f15827c05ade32e5674a1f7edf135fad7c223454 | |
parent | adfbd028e155fca3bbe33d458f2f27cb657e5792 [diff] |
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>