summaryrefslogtreecommitdiffstats
path: root/cpukit/dev
diff options
context:
space:
mode:
authorBernd Moessner <berndmoessner80@gmail.com>2024-01-06 20:39:27 +0100
committerJoel Sherrill <joel@rtems.org>2024-01-16 10:57:43 -0600
commitbd898b503fd0d250b11cbffddc041e1e29e3fc7e (patch)
tree98c1e0c72c7bfc6aa86bccec0c3bc9c6c51da08f /cpukit/dev
parentflashdev.h: Add missing C++ include guards (diff)
downloadrtems-bd898b503fd0d250b11cbffddc041e1e29e3fc7e.tar.bz2
flashdev: Add missing default case
Updates #4981
Diffstat (limited to 'cpukit/dev')
-rw-r--r--cpukit/dev/flash/flashdev.c2
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 );