2008-02-19 14:49:23

by Martin Schwidefsky

[permalink] [raw]
Subject: [patch 11/13] dcss: Fix Unlikely(x) != y

From: Roel Kluin <[email protected]>

Fix Unlikely(x) != y

Cc: Gerald Schaefer <[email protected]>
Cc: Stefan Weinhuber <[email protected]>
Cc: Carsten Otte <[email protected]>
Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
---

drivers/s390/block/dcssblk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: quilt-2.6/drivers/s390/block/dcssblk.c
===================================================================
--- quilt-2.6.orig/drivers/s390/block/dcssblk.c
+++ quilt-2.6/drivers/s390/block/dcssblk.c
@@ -666,7 +666,7 @@ dcssblk_make_request(struct request_queu
page_addr = (unsigned long)
page_address(bvec->bv_page) + bvec->bv_offset;
source_addr = dev_info->start + (index<<12) + bytes_done;
- if (unlikely(page_addr & 4095) != 0 || (bvec->bv_len & 4095) != 0)
+ if (unlikely((page_addr & 4095) != 0) || (bvec->bv_len & 4095) != 0)
// More paranoia.
goto fail;
if (bio_data_dir(bio) == READ) {

--
blue skies,
Martin.

"Reality continues to ruin my life." - Calvin.