]> git.baikalelectronics.ru Git - kernel.git/commit
ata: libata-core: get rid of *else* branches in ata_id_n_sectors()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Thu, 9 Jun 2022 21:06:54 +0000 (00:06 +0300)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 14 Jun 2022 08:58:57 +0000 (17:58 +0900)
commitd7fe323177ad1a3a7d219729322afd0613768324
treed64c47caef10c2925d2817e92bcfde55a978c028
parent5c33831ac0321dd32c434a02092d82d39eac16fc
ata: libata-core: get rid of *else* branches in ata_id_n_sectors()

Using *else* after *return* doesn't make much sense -- getting rid of such
*else* branches reduces the indentation levels and thus reduces # of LoC...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-core.c