diff options
Diffstat (limited to 'drivers/ieee1394/highlevel.c')
-rw-r--r-- | drivers/ieee1394/highlevel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ieee1394/highlevel.c b/drivers/ieee1394/highlevel.c index 734b121a0554..491e6032bdec 100644 --- a/drivers/ieee1394/highlevel.c +++ b/drivers/ieee1394/highlevel.c | |||
@@ -306,8 +306,7 @@ u64 hpsb_allocate_and_register_addrspace(struct hpsb_highlevel *hl, | |||
306 | u64 align_mask = ~(alignment - 1); | 306 | u64 align_mask = ~(alignment - 1); |
307 | 307 | ||
308 | if ((alignment & 3) || (alignment > 0x800000000000ULL) || | 308 | if ((alignment & 3) || (alignment > 0x800000000000ULL) || |
309 | ((hweight32(alignment >> 32) + | 309 | (hweight64(alignment) != 1)) { |
310 | hweight32(alignment & 0xffffffff) != 1))) { | ||
311 | HPSB_ERR("%s called with invalid alignment: 0x%048llx", | 310 | HPSB_ERR("%s called with invalid alignment: 0x%048llx", |
312 | __FUNCTION__, (unsigned long long)alignment); | 311 | __FUNCTION__, (unsigned long long)alignment); |
313 | return retval; | 312 | return retval; |