]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
super-intel: Simplify for() loop in ahci_enumerate_ports
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Fri, 11 Mar 2016 15:47:16 +0000 (16:47 +0100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 11 Mar 2016 17:33:52 +0000 (12:33 -0500)
commit1a6dd6b9c12dab2035eb44f480da96533a6dcf94
treed21bfe954b712d290c5f29c761c8f08b2636398f
parentb5eece6925c962b57b76b00220f1662ead948854
super-intel: Simplify for() loop in ahci_enumerate_ports

This patch simplifies for() loop used in
ahci_enumerate_ports(). It makes it more readable.
Similar thing was done in b913501
({platform,super}-intel: Fix two resource leaks).

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super-intel.c