SDL: Removed unnecessary cast

From 017a1039e2e714c181cf61d40afc710d8456d1ac Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 29 Jun 2024 13:03:51 -0700
Subject: [PATCH] Removed unnecessary cast

---
 src/events/SDL_keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c
index 5156e0a36550c..44fc1377879ed 100644
--- a/src/events/SDL_keyboard.c
+++ b/src/events/SDL_keyboard.c
@@ -714,7 +714,7 @@ SDL_Keymod SDL_GetModState(void)
 {
     SDL_Keyboard *keyboard = &SDL_keyboard;
 
-    return (SDL_Keymod)keyboard->modstate;
+    return keyboard->modstate;
 }
 
 void SDL_SetModState(SDL_Keymod modstate)