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)
commitef300544723b3be25c877e520b23831eaf7830e8
treeef65e6b1ffd31fd94734f3ae60c1be4a940d252f
parent9f17609968af25a4082d4329abbc6e4f52eda7cd
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