Staging: ks7010 : Fix block comments warning
PATCH 1/1 Staging: ks7010 : Fix block comments warning
This patch fixes the checkpatch.pl warning:
WARNING: Block comments use a trailing */ on a separate line
--- drivers/staging/ks7010/eap_packet.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/staging/ks7010/eap_packet.h +8 -4
@@ -52,15 +52,18 @@ struct ieee802_1x_eapol_key {unsigned char type;unsigned short key_length;/* does not repeat within the life of the keying material used to -* encrypt the Key field; 64-bit NTP timestamp MAY be used here */ +* encrypt the Key field; 64-bit NTP timestamp MAY be used here +*/ unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN ];unsigned char key_iv[IEEE8021X_KEY_IV_LEN ];/* cryptographically random number */ unsigned char key_index;/* key flag in the most significant bit: * 0 = broadcast (default key), * 1 = unicast (key mapping key); key index is in the -* 7 least significant bits */ +* 7 least significant bits +*/ /* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as -* the key */ +* the key +*/ unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN ];/* followed by key: if packet body length = 44 + key length, then the
@@ -68,7 +71,8 @@ struct ieee802_1x_eapol_key {* if packet body length = 44, key field is absent and key_length * represents the number of least significant octets from * MS-MPPE-Send-Key attribute to be used as the keying material; -* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */ +* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key +*/ } __attribute__ ((packed));#define WPA_NONCE_LEN 32
Signature · 1 line
1.9.1
Quoted 3 lines · Muraru Mihaela
This patch fixes the checkpatch.pl warning:
WARNING: Block comments use a trailing */ on a separate line
It is good to write your commit message in the imperative, and to say what you actually did to perform the fix rather than just saying what you fixed.
Here you could say: "Move final */ down to a separate line to conform to the kernel coding style for block comments. Issue found by checkpatch."
julia
Quoted 52 lines
Signed-off-by Muraru Mihaela <[email protected]>--- drivers/staging/ks7010/eap_packet.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)drivers/staging/ks7010/eap_packet.h +8
-5@@ -52,15 +52,18 @@ struct ieee802_1x_eapol_key {unsigned char type;unsigned short key_length;/* does not repeat within the life of the keying material used to -* encrypt the Key field; 64-bit NTP timestamp MAY be used here */ +* encrypt the Key field; 64-bit NTP timestamp MAY be used here +*/ unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN ];unsigned char key_iv[IEEE8021X_KEY_IV_LEN ];/* cryptographically random number */ unsigned char key_index;/* key flag in the most significant bit: * 0 = broadcast (default key), * 1 = unicast (key mapping key); key index is in the -* 7 least significant bits */ +* 7 least significant bits +*/ /* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as -* the key */ +* the key +*/ unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN ];/* followed by key: if packet body length = 44 + key length, then the @@ -68,7 +71,8 @@ struct ieee802_1x_eapol_key {* if packet body length = 44, key field is absent and key_length * represents the number of least significant octets from * MS-MPPE-Send-Key attribute to be used as the keying material; -* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */ +* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key +*/ } __attribute__ ((packed));#define WPA_NONCE_LEN 32 --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160927061520.GA21545%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.