ata: libata-eh: Remove unnecessary snprintf arithmetic
authorLevente Kurusa <levex@linux.com>
Tue, 29 Oct 2013 19:01:46 +0000 (20:01 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 22 Nov 2013 22:21:10 +0000 (17:21 -0500)
commit462098b090897fbcf00088b225eb7a3adc407e98
tree5eb3e3b5f30e0103f30b32e93ccdf3230089f4c4
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
ata: libata-eh: Remove unnecessary snprintf arithmetic

Remove an unnecessary arithmetic operation from a call to snprintf, because
the size parameter of snprintf includes the trailing null space.
Also, initialize the buffer on definition instead of a memset call.

Signed-off-by: Levente Kurusa <levex@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-eh.c