diff options
author | Yihao Han <hanyihao@vivo.com> | 2022-04-08 11:12:37 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-04-19 05:57:35 +0300 |
commit | 65db22e505c4f3d13f588775844074bee5e93163 (patch) | |
tree | 1434b11a595b0c2682ecbaf2d6ee5352779792ee /lib/locking-selftest-rsem.h | |
parent | 21a023ce397ba1959d342b1087216655abc2ba49 (diff) | |
download | linux-65db22e505c4f3d13f588775844074bee5e93163.tar.xz |
scsi: fcoe: Simplify if-if to if-else
Replace 'if (!is_zero_ether_addr(mac))' with 'else' for simplification and
add curly brackets according to the kernel coding style:
"Do not unnecessarily use braces where a single statement will do."
...
"This does not apply if only one branch of a conditional statement is a
single statement; in the latter case use braces in both branches"
Please refer to:
https://www.kernel.org/doc/html/v5.17-rc8/process/coding-style.html
Link: https://lore.kernel.org/r/20220408081237.14037-1-hanyihao@vivo.com
Signed-off-by: Yihao Han <hanyihao@vivo.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/locking-selftest-rsem.h')
0 files changed, 0 insertions, 0 deletions