]> git.baikalelectronics.ru Git - kernel.git/commit
pm8001: clean bitmap management functions
authorTomas Henzl <thenzl@redhat.com>
Wed, 9 Jul 2014 11:50:40 +0000 (17:20 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:04 +0000 (17:17 -0400)
commitf7cb995e5f2d5e70b15708a0a743474c70274ac2
treeef65e6b1ffd31fd94734f3ae60c1be4a940d252f
parent3ca93d2c4910f0e5f541d6a35aa5a8a80c7b9206
pm8001: clean bitmap management functions

In the driver two different functions are used to free the same resource,
this patch makes the code easier to read. In addittion to that, some
minor optimisations were made too.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/pm8001/pm8001_hwi.c
drivers/scsi/pm8001/pm8001_sas.c
drivers/scsi/pm8001/pm8001_sas.h