Skip to content
Commit 462098b0 authored by Levente Kurusa's avatar Levente Kurusa Committed by Tejun Heo
Browse files

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: default avatarLevente Kurusa <levex@linux.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 6ce4eac1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment