svn commit: r311054 - stable/10/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Mon Jan 2 08:58:52 UTC 2017
Author: arybchik
Date: Mon Jan 2 08:58:51 2017
New Revision: 311054
URL: https://svnweb.freebsd.org/changeset/base/311054
Log:
MFC r310686
sfxge(4): cleanup: add missing space between type and pointer symbol
Found by DPDK checkpatch.sh
Sponsored by: Solarflare Communications, Inc.
Modified:
stable/10/sys/dev/sfxge/common/efx.h
stable/10/sys/dev/sfxge/common/efx_lic.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/sfxge/common/efx.h
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx.h Mon Jan 2 08:58:16 2017 (r311053)
+++ stable/10/sys/dev/sfxge/common/efx.h Mon Jan 2 08:58:51 2017 (r311054)
@@ -435,7 +435,7 @@ typedef enum efx_link_mode_e {
#define EFX_MAC_ADDR_LEN 6
-#define EFX_MAC_ADDR_IS_MULTICAST(_address) (((uint8_t*)_address)[0] & 0x01)
+#define EFX_MAC_ADDR_IS_MULTICAST(_address) (((uint8_t *)_address)[0] & 0x01)
#define EFX_MAC_MULTICAST_LIST_MAX 256
Modified: stable/10/sys/dev/sfxge/common/efx_lic.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_lic.c Mon Jan 2 08:58:16 2017 (r311053)
+++ stable/10/sys/dev/sfxge/common/efx_lic.c Mon Jan 2 08:58:51 2017 (r311054)
@@ -509,8 +509,8 @@ efx_lic_v1v2_find_key(
if ((size_t)buffer_size - offset < EFX_LICENSE_V1V2_HEADER_LENGTH)
goto fail1;
- tlv_type = __LE_TO_CPU_16(((uint16_t*)&bufferp[offset])[0]);
- tlv_length = __LE_TO_CPU_16(((uint16_t*)&bufferp[offset])[1]);
+ tlv_type = __LE_TO_CPU_16(((uint16_t *)&bufferp[offset])[0]);
+ tlv_length = __LE_TO_CPU_16(((uint16_t *)&bufferp[offset])[1]);
if ((tlv_length > EFX_LICENSE_V1V2_PAYLOAD_LENGTH_MAX) ||
(tlv_type == 0 && tlv_length == 0)) {
found = B_FALSE;
@@ -543,8 +543,8 @@ efx_lic_v1v2_validate_key(
goto fail1;
}
- tlv_type = __LE_TO_CPU_16(((uint16_t*)keyp)[0]);
- tlv_length = __LE_TO_CPU_16(((uint16_t*)keyp)[1]);
+ tlv_type = __LE_TO_CPU_16(((uint16_t *)keyp)[0]);
+ tlv_length = __LE_TO_CPU_16(((uint16_t *)keyp)[1]);
if (tlv_length > EFX_LICENSE_V1V2_PAYLOAD_LENGTH_MAX) {
goto fail2;
@@ -1169,8 +1169,8 @@ efx_lic_v3_validate_key(
goto fail2;
}
- key_type = ((uint8_t*)keyp)[0];
- key_length = ((uint8_t*)keyp)[1];
+ key_type = ((uint8_t *)keyp)[0];
+ key_length = ((uint8_t *)keyp)[1];
if (key_type < 3) {
goto fail3;
More information about the svn-src-stable
mailing list