drivers/media/common/siano/smsendian.c : eliminate unnecessary type conversions
authorDong Chuanjian <chuanjian@nfschina.com>
Mon, 26 Dec 2022 03:10:05 +0000 (11:10 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 19 Jul 2023 10:57:46 +0000 (12:57 +0200)
remove unnecessary void* type casting.

Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/common/siano/smsendian.c

index 8cb8853a1edb6ac1cdb6646a03561243de3bbeeb..a3573814919b6b821a23680be9b57bd97329da2c 100644 (file)
@@ -17,7 +17,7 @@
 void smsendian_handle_tx_message(void *buffer)
 {
 #ifdef __BIG_ENDIAN
-       struct sms_msg_data *msg = (struct sms_msg_data *)buffer;
+       struct sms_msg_data *msg = buffer;
        int i;
        int msg_words;