[PATCH rtems6 - v2 05/16] flashdev: Add missing default case

Kinsey Moore kinsey.moore at oarcorp.com
Tue Jan 9 23:04:55 UTC 2024


This patch looks good to me.

Kinsey

On Sun, Jan 7, 2024 at 12:19 PM <berndmoessner80 at gmail.com> wrote:

> From: Bernd Moessner <berndmoessner80 at gmail.com>
>
> 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 27edead968..8bd3d11246 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_GET_WRITE_BLOCK_SIZE:
>        err = rtems_flashdev_ioctl_get_write_block_size( flash, arg );
>        break;
> +    default:
> +      err = EINVAL;
>    }
>
>    rtems_flashdev_release( flash );
> --
> 2.34.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240109/911487da/attachment.htm>


More information about the devel mailing list