Re: [PATCH] staging: rtl8723bs: os_dep: Cleanup pointer casting code style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 02, 2020 at 08:47:50AM +0800, Yu Jian Wu wrote:
> Cleanup by adding a space between type and pointer, in accordance with
> checkpatch.pl message "(foo*)" should be "(foo *)".
> 
> Signed-off-by: Yu Jian Wu <yujian.wu1@xxxxxxxxx>
> ---
>  .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c    | 16 ++++++++--------
>  drivers/staging/rtl8723bs/os_dep/recv_linux.c    |  2 +-
>  2 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> index b037868fbf22..8377bc75e308 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> @@ -98,7 +98,7 @@ static struct ieee80211_channel rtw_2ghz_channels[] = {
>  
>  static void rtw_2g_channels_init(struct ieee80211_channel *channels)
>  {
> -	memcpy((void*)channels, (void*)rtw_2ghz_channels,
> +	memcpy((void *)channels, (void *)rtw_2ghz_channels,

These casts aren't required.  It would be better to remove them.

	memcpy(channels, rtw_2ghz_channels,
	       sizeof(*channel) * RTW_2G_CHANNELS_NUM);

Same for a bunch of the others as well.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux