diff options
author | wangweidong <wangweidong1@huawei.com> | 2013-12-22 23:16:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-26 13:47:47 -0500 |
commit | cb3f837ba95d7774978e86fc17ddf970cf7d15a4 (patch) | |
tree | 6d65728a0446cf0830da1d599f6fcbb45d3d799d /net/sctp/auth.c | |
parent | 4c99aa409a56ae6517b2ae3c23f685d502daa992 (diff) |
sctp: fix checkpatch errors with space required or prohibited
fix checkpatch errors while the space is required or prohibited
to the "=,()++..."
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/auth.c')
-rw-r--r-- | net/sctp/auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/auth.c b/net/sctp/auth.c index 5c9f64c1c906..78767aa20435 100644 --- a/net/sctp/auth.c +++ b/net/sctp/auth.c | |||
@@ -41,7 +41,7 @@ static struct sctp_hmac sctp_hmac_list[SCTP_AUTH_NUM_HMACS] = { | |||
41 | }, | 41 | }, |
42 | { | 42 | { |
43 | .hmac_id = SCTP_AUTH_HMAC_ID_SHA1, | 43 | .hmac_id = SCTP_AUTH_HMAC_ID_SHA1, |
44 | .hmac_name="hmac(sha1)", | 44 | .hmac_name = "hmac(sha1)", |
45 | .hmac_len = SCTP_SHA1_SIG_SIZE, | 45 | .hmac_len = SCTP_SHA1_SIG_SIZE, |
46 | }, | 46 | }, |
47 | { | 47 | { |
@@ -51,7 +51,7 @@ static struct sctp_hmac sctp_hmac_list[SCTP_AUTH_NUM_HMACS] = { | |||
51 | #if defined (CONFIG_CRYPTO_SHA256) || defined (CONFIG_CRYPTO_SHA256_MODULE) | 51 | #if defined (CONFIG_CRYPTO_SHA256) || defined (CONFIG_CRYPTO_SHA256_MODULE) |
52 | { | 52 | { |
53 | .hmac_id = SCTP_AUTH_HMAC_ID_SHA256, | 53 | .hmac_id = SCTP_AUTH_HMAC_ID_SHA256, |
54 | .hmac_name="hmac(sha256)", | 54 | .hmac_name = "hmac(sha256)", |
55 | .hmac_len = SCTP_SHA256_SIG_SIZE, | 55 | .hmac_len = SCTP_SHA256_SIG_SIZE, |
56 | } | 56 | } |
57 | #endif | 57 | #endif |
@@ -163,7 +163,7 @@ static int sctp_auth_compare_vectors(struct sctp_auth_bytes *vector1, | |||
163 | * lead-zero padded. If it is not, it | 163 | * lead-zero padded. If it is not, it |
164 | * is automatically larger numerically. | 164 | * is automatically larger numerically. |
165 | */ | 165 | */ |
166 | for (i = 0; i < abs(diff); i++ ) { | 166 | for (i = 0; i < abs(diff); i++) { |
167 | if (longer[i] != 0) | 167 | if (longer[i] != 0) |
168 | return diff; | 168 | return diff; |
169 | } | 169 | } |