]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mptfusion: Use snprintf() instead of open coded divisions
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Jan 2018 17:05:58 +0000 (19:05 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Jan 2018 06:12:20 +0000 (01:12 -0500)
commiteaeffd0da13f4ef85f78409599c0f09391ceb4ca
tree9c40cdcf1d4d1416404feff94494253012dcf6bf
parent5c59dd2a3930d1638ba3a11d8348cf2f5ba223d1
scsi: mptfusion: Use snprintf() instead of open coded divisions

Numbers up to 100 snprintf() prints without using a division.  Besides
that the code looks more readable.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptctl.c