tools/testing/selftests/vm/gup_benchmark.c: fix 'write' flag usage
authorKeith Busch <[email protected]>
Fri, 26 Oct 2018 22:09:59 +0000 (15:09 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:38:15 +0000 (16:38 -0700)
If the '-w' parameter was provided, the benchmark would exit due to a
mssing 'break'.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Keith Busch <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Dan Williams <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/vm/gup_benchmark.c

index c2f785ded9b9438ca016e9bd94022d43c1f5eab9..b2082df8beb44d70f7a2ecbd9a9516ae76b40917 100644 (file)
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
                        break;
                case 'w':
                        write = 1;
+                       break;
                default:
                        return -1;
                }