xtensa/simdisk: Use str_write_read() helper in simdisk_transfer()
PATCH 1/1 xtensa/simdisk: Use str_write_read() helper in simdisk_transfer()
Remove hard-coded strings by using the str_write_read() helper.
Signed-off-by Thorsten Blum <[email protected]>
--- arch/xtensa/platforms/iss/simdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/xtensa/platforms/iss/simdisk.c +2 -1
@@ -14,6 +14,7 @@#include <linux/kernel.h> #include <linux/init.h> #include <linux/string.h> +#include <linux/string_choices.h> #include <linux/blkdev.h> #include <linux/bio.h> #include <linux/proc_fs.h>
@@ -75,7 +76,7 @@ static void simdisk_transfer(struct simdisk *dev, unsigned long sector,if (offset > dev->size || dev->size - offset < nbytes) {pr_notice ("Beyond-end %s (%ld %ld)\n" , - write ?"write" :"read" , offset, nbytes); +str_write_read (write), offset, nbytes);return ; }
Signature · 1 line
2.47.1
Quoted 7 lines · Thorsten Blum
Remove hard-coded strings by using the
str_write_read()helper.Signed-off-by Thorsten Blum <[email protected]>--- arch/xtensa/platforms/iss/simdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to my xtensa tree.
Signature · 2 lines
Thanks. -- Max