The idle class does not have class data, so let's
fall through to case IOPRIO_CLASS_NONE to check
the specification of data field.

Signed-off-by: Chengguang Xu <[email protected]>
---
 block/ioprio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/ioprio.c b/block/ioprio.c
index 8c0f971015c9..63db916f86fb 100644
--- a/block/ioprio.c
+++ b/block/ioprio.c
@@ -78,7 +78,7 @@ int ioprio_check_cap(int ioprio)
 
                        break;
                case IOPRIO_CLASS_IDLE:
-                       break;
+                       /* fall through */
                case IOPRIO_CLASS_NONE:
                        if (data)
                                return -EINVAL;
-- 
2.17.2

Reply via email to