]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: loopback: drop redundant endo0 string from debugfs entry name
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 23 Sep 2015 16:31:33 +0000 (09:31 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 23 Sep 2015 19:46:16 +0000 (12:46 -0700)
commit8d8d36da750ccba4c9ba9a293b3a338afd0b75b0
tree6f484c1e6a3a82b5ba212b3987d086e18bb864a6
parent42d7f7e884fcce78301ca88da3434f0fcbf3fee5
greybus: loopback: drop redundant endo0 string from debugfs entry name

dev_name() will return the endo0 component of the string on it's own,
there's no need to include it in the snprintf() when construting the
debugfs name. This fixes 'endo0' appearing more than once in the debugfs
name - shamefully slipped through testing cb570c93783f
('greybus/loopback: use dev_name to populate sysfsname').

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c