platform/x86: think-lmi: Remove unnecessary casts for attributes
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 29 Mar 2023 04:50:25 +0000 (04:50 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 6 Apr 2023 10:43:58 +0000 (12:43 +0200)
commit3e9adae9336f1d530f342e5d5fbfc7d349f25b95
tree1035f1d81be484b924907e713b3f50de3f7ee283
parente82882cdd241b78d305df1441c624fbbbd07af05
platform/x86: think-lmi: Remove unnecessary casts for attributes

These casts are unnecessary and could break if structure layouts are
randomized or implementation details change.
Use the proper syntax that works without casts.

Also remove some unnecessary braces that checkpatch complains about.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230329-think-lmi-attrs-v1-1-5794f2367cc2@weissschuh.net
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/think-lmi.c