Skip to content

Commit d14b9a7

Browse files
tobluxjcmvbkbc
authored andcommitted
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]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 5055d82 commit d14b9a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/xtensa/platforms/iss/simdisk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/kernel.h>
1515
#include <linux/init.h>
1616
#include <linux/string.h>
17+
#include <linux/string_choices.h>
1718
#include <linux/blkdev.h>
1819
#include <linux/bio.h>
1920
#include <linux/proc_fs.h>
@@ -75,7 +76,7 @@ static void simdisk_transfer(struct simdisk *dev, unsigned long sector,
7576

7677
if (offset > dev->size || dev->size - offset < nbytes) {
7778
pr_notice("Beyond-end %s (%ld %ld)\n",
78-
write ? "write" : "read", offset, nbytes);
79+
str_write_read(write), offset, nbytes);
7980
return;
8081
}
8182

0 commit comments

Comments
 (0)