]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi: use is_power_of_2
authorvignesh babu <vignesh.babu@wipro.com>
Thu, 13 Dec 2007 18:43:41 +0000 (12:43 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:51 +0000 (18:28 -0600)
commit2b447d4e0c7477869bf2d05c92a822bc1b87c55d
tree3bd814b509c6b9d1abaf7185d17588b88f208775
parent7a781e634da1acafc8e484fb094370fad02e26a0
[SCSI] libiscsi: use is_power_of_2

Replacing n & (n - 1) for power of 2 check by is_power_of_2(n)

Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c