Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5163dc1a645bc9ed7984fa484f1a77378c166d23
Commit:     5163dc1a645bc9ed7984fa484f1a77378c166d23
Parent:     8704e9a8790cc9e394198663c1c9150c899fb9a2
Author:     Marcin Slusarz <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 13 00:06:08 2008 +0100
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Wed Feb 13 07:47:47 2008 -0800

    IB/mthca: Convert to use be16_add_cpu()
    
    replace:
    
        big_endian_variable = cpu_to_beX(beX_to_cpu(big_endian_variable) +
                                                expression_in_cpu_byteorder);
    
    with:
    
        beX_add_cpu(&big_endian_variable, expression_in_cpu_byteorder);
    
    Generated with a semantic patch.
    
    Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]>
    Cc: Sean Hefty <[EMAIL PROTECTED]>
    Cc: Hal Rosenstock <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/hw/mthca/mthca_cq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_cq.c 
b/drivers/infiniband/hw/mthca/mthca_cq.c
index 6bd9f13..1e1e336 100644
--- a/drivers/infiniband/hw/mthca/mthca_cq.c
+++ b/drivers/infiniband/hw/mthca/mthca_cq.c
@@ -473,7 +473,7 @@ static void handle_error_cqe(struct mthca_dev *dev, struct 
mthca_cq *cq,
        if (!(new_wqe & cpu_to_be32(0x3f)) || (!cqe->db_cnt && dbd))
                return;
 
-       cqe->db_cnt   = cpu_to_be16(be16_to_cpu(cqe->db_cnt) - dbd);
+       be16_add_cpu(&cqe->db_cnt, -dbd);
        cqe->wqe      = new_wqe;
        cqe->syndrome = SYNDROME_WR_FLUSH_ERR;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to