linux/drivers/scsi/mpi3mr
Dan Carpenter 76a4f7cc59 scsi: mpi3mr: Clean up mpi3mr_print_ioc_info()
This function is more complicated than necessary.

If we change from scnprintf() to snprintf() that lets us remove the if
bytes_wrote < sizeof(protocol) checks.  Also, we can use bytes_wrote ? ","
: "" to print the comma and remove the separate if statement and the
"is_string_nonempty" variable.

[mkp: a few formatting cleanups and s/wrote/written/]

Link: https://lore.kernel.org/r/20210916132605.GF25094@kili
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-10-04 23:51:14 -04:00
..
mpi
Kconfig
Makefile
mpi3mr_debug.h
mpi3mr_fw.c scsi: mpi3mr: Clean up mpi3mr_print_ioc_info() 2021-10-04 23:51:14 -04:00
mpi3mr_os.c scsi: mpi3mr: Set up IRQs in resume path 2021-08-24 22:56:33 -04:00
mpi3mr.h scsi: mpi3mr: Set up IRQs in resume path 2021-08-24 22:56:33 -04:00