]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8192e: Use struct_size
authorFelix Schlepper <f3sch.git@outlook.com>
Fri, 24 Jun 2022 13:54:53 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 11:50:03 +0000 (13:50 +0200)
commit961feaa2e3d2488d547d2bf4560e634b9e133c0a
treec80dd7b265c41f053ebee3279d1082c2488254ae
parent9bca1dcf8a7545c7ad60f63c9c5d5408a7d814d0
Staging: rtl8192e: Use struct_size

Using struct_size is encouraged because it is safer
than using sizeof and calculations by hand.

Signed-off-by: Felix Schlepper <f3sch.git@outlook.com>
Link: https://lore.kernel.org/r/54ea62a2b7628d3bdd5aa52df82c3e91704a2127.1656078068.git.f3sch.git@outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_tx.c