[rtems commit] flashdev: Add missing default case
Joel Sherrill
joel at rtems.org
Tue Jan 16 16:58:21 UTC 2024
Module: rtems
Branch: master
Commit: bd898b503fd0d250b11cbffddc041e1e29e3fc7e
Changeset: http://git.rtems.org/rtems/commit/?id=bd898b503fd0d250b11cbffddc041e1e29e3fc7e
Author: Bernd Moessner <berndmoessner80 at gmail.com>
Date: Sat Jan 6 20:39:27 2024 +0100
flashdev: Add missing default case
Updates #4981
---
cpukit/dev/flash/flashdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c
index be85593201..8363ac96b1 100644
--- a/cpukit/dev/flash/flashdev.c
+++ b/cpukit/dev/flash/flashdev.c
@@ -390,6 +390,8 @@ static int rtems_flashdev_ioctl(
case RTEMS_FLASHDEV_IOCTL_WRITE_BLOCK_SIZE:
err = rtems_flashdev_ioctl_write_block_size( flash, arg );
break;
+ default:
+ err = EINVAL;
}
rtems_flashdev_release( flash );
More information about the vc
mailing list