diff options
author | Bernd Moessner <berndmoessner80@gmail.com> | 2024-01-06 20:39:27 +0100 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2024-01-16 10:57:43 -0600 |
commit | bd898b503fd0d250b11cbffddc041e1e29e3fc7e (patch) | |
tree | 98c1e0c72c7bfc6aa86bccec0c3bc9c6c51da08f /cpukit/dev | |
parent | flashdev.h: Add missing C++ include guards (diff) | |
download | rtems-bd898b503fd0d250b11cbffddc041e1e29e3fc7e.tar.bz2 |
flashdev: Add missing default case
Updates #4981
Diffstat (limited to 'cpukit/dev')
-rw-r--r-- | cpukit/dev/flash/flashdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |