mtd: Fixed checkpatch seq_printf warnings
authorSamarth Parikh <samarthp@ymail.com>
Wed, 16 Jul 2014 10:44:37 +0000 (16:14 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:07 +0000 (11:53 -0700)
commit6f3c0f163103fb225c77b73ca17fc4ecea308103
tree0a8c89ee85814c9d12f910e451bd3d71bf135fc6
parent2902330e7ac16d5962f114d92bb17631e9cb49e9
mtd: Fixed checkpatch seq_printf warnings

Fixed checkpatch warnings: "WARNING: Prefer seq_puts to seq_printf"

This patch is created with reference to the ongoing lkml thread
https://lkml.org/lkml/2014/7/15/646
where Andrew Morton wrote:

"
- puts is presumably faster

- puts doesn't go rogue if you accidentally pass it a "%".

- this patch would actually make compiled object files few bytes smaller.
  Perhaps because seq_printf() is a varargs function, forcing the
  caller to pass args on the stack instead of in registers.
"

Signed-off-by: Samarth Parikh <samarthp@ymail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/docg3.c
drivers/mtd/mtdswap.c