aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wan
AgeCommit message (Collapse)AuthorFilesLines
2021-06-10net: ixp4xx_hss: add blank line after declarationsPeng Li1-0/+5
This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-10net: ixp4xx_hss: remove redundant blank linesPeng Li1-11/+0
This patch removes some redundant blank lines. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: fix the code style issue about line lengthPeng Li1-1/+2
According to the chackpatch.pl, line length of 123 exceeds 100 columns, so fix it. Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: fix the alignment issuePeng Li1-1/+1
Alignment should match open parenthesis. Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: replace comparison to NULL with "lapbeth_get_x25_dev"Peng Li1-1/+1
According to the chackpatch.pl, comparison to NULL could be written "lapbeth_get_x25_dev". Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: fix the comments style issuePeng Li1-17/+10
Networking block comments don't use an empty /* line, use /* Comment... Block comments use * on subsequent lines. Block comments use a trailing */ on a separate line. This patch fixes the comments style issues. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: remove unnecessary out of memory messagePeng Li1-6/+2
This patch removes unnecessary out of memory message, to fix the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: remove trailing whitespacesPeng Li1-3/+3
This patch removes trailing whitespaces. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: move out assignment in if conditionPeng Li1-5/+10
Should not use assignment in if condition. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: add blank line after declarationsPeng Li1-0/+1
This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-09net: lapbether: remove redundant blank linePeng Li1-1/+0
This patch the redundant blank line. Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: replace comparison to NULL with "fst_card_array[i]"Peng Li1-2/+2
According to the chackpatch.pl, comparison to NULL could be written "fst_card_array[i]". Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove redundant returnPeng Li1-1/+0
Void function return statements are not generally useful. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: fix the alignment issuePeng Li1-1/+1
Alignment should match open parenthesis. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove redundant parenthesesPeng Li1-8/+8
Unnecessary parentheses around 'port->hwif == X21'. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove redundant spacesPeng Li1-9/+9
According to the chackpatch.pl, space prohibited between function name and open parenthesis '(', no space is necessary after a cast. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove redundant braces {}Peng Li1-51/+35
This patch removes redundant braces {}, to fix the checkpatch.pl warning: "braces {} are not necessary for single statement blocks". Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: add some required spacesPeng Li1-6/+6
Add spaces required around that '=' and '*'. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: fix the code style issue about macrosPeng Li1-6/+6
Macros with complex values should be enclosed in parentheses. space required after that ',' . Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: code indent use tabs where possiblePeng Li1-18/+18
Code indent should use tabs where possible. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove trailing whitespacesPeng Li1-15/+15
This patch removes trailing whitespaces. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: fix the comments style issuePeng Li1-152/+83
Networking block comments don't use an empty /* line, use /* Comment... Block comments use * on subsequent lines. Block comments use a trailing */ on a separate line. This patch fixes the comments style issues. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove redundant initialization for staticsPeng Li1-2/+2
Should not initialise statics to 0. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: move out assignment in if conditionPeng Li1-8/+16
Should not use assignment in if condition. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: fix the code style issue about "foo* bar"Peng Li1-1/+1
Fix the checkpatch error as "foo * bar" should be "foo *bar". Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: add blank line after declarationsPeng Li1-0/+2
This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-08net: farsync: remove redundant blank linesPeng Li1-3/+0
This patch removes some redundant blank lines. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: add some required spacesPeng Li1-2/+2
Add space required before the open parenthesis '('. Add space required after that close brace '}'. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: remove redundant parenthesesPeng Li1-2/+2
Remove redundant parentheses around 'cda >= desc_off'. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: fix the comments style issuePeng Li1-3/+3
Block comments use * on subsequent lines. Block comments use a trailing */ on a separate line. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: add braces {} to all arms of the statementPeng Li1-4/+8
Braces {} should be used on all arms of this statement. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: fix the code style issue about trailing statementsPeng Li1-18/+42
Trailing statements should be on next line. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: fix the code style issue about "foo* bar"Peng Li1-7/+7
Fix the checkpatch error as "foo* bar" and should be "foo *bar", and "(foo*)" should be "(foo *)". Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: add blank line after declarationsPeng Li1-0/+2
This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-07net: hd64570: remove redundant blank linesPeng Li1-22/+0
This patch removes some redundant blank lines. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-04net: hdlc_x25: fix the alignment issuePeng Li1-14/+14
Alignment should match open parenthesis. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-04net: hdlc_x25: fix the code issue about "if..else.."Peng Li1-2/+1
According to the chackpatch.pl, else should follow close brace '}'. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-04net: hdlc_x25: add some required spacesPeng Li1-1/+2
Add spaces required around that '='. Add space required after that ','. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-04net: hdlc_x25: move out assignment in if conditionPeng Li1-6/+11
Should not use assignment in if condition. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-04net: hdlc_x25: remove unnecessary out of memory messagePeng Li1-3/+1
This patch removes unnecessary out of memory message, to fix the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-04net: hdlc_x25: remove redundant blank linesPeng Li1-22/+0
This patch removes some redundant blank lines. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-03net: hdlc_cisco: remove redundant spacePeng Li1-1/+1
Space prohibited between function name and open parenthesis '('. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-03net: hdlc_cisco: add blank line after declarationPeng Li1-0/+1
This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-03net: hdlc_cisco: remove unnecessary out of memory messagePeng Li1-3/+2
This patch removes unnecessary out of memory message, to fix the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-03net: hdlc_cisco: add some required spacesPeng Li1-3/+4
Add spaces required after the close parenthesis '}'. Add spaces required after that ','. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-03net: hdlc_cisco: fix the code style issue about "foo* bar"Peng Li1-6/+6
Fix the checkpatch error as "foo* bar" and should be "foo *bar", and "(foo*)" should be "(foo *)". Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-03net: hdlc_cisco: remove redundant blank linesPeng Li1-22/+0
This patch removes some redundant blank lines. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-01net: hdlc: add braces {} to all arms of the statementPeng Li1-1/+2
Braces {} should be used on all arms of this statement. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-01net: hdlc: move out assignment in if conditionPeng Li1-2/+4
Should not use assignment in if condition. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-06-01net: hdlc: replace comparison to NULL with "!param"Peng Li1-2/+2
According to the chackpatch.pl, comparison to NULL could be written "!param". Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>