]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/infiniband/hw/nes/nes_mgt.c
RDMA/nes: Use WARN()
[karo-tx-linux.git] / drivers / infiniband / hw / nes / nes_mgt.c
index 4d6d77fd18b6b51e6ec87c8554e2258a818a8799..416645259b0f84b6a444596e7c8acc85189d6c84 100644 (file)
@@ -649,11 +649,9 @@ static void nes_chg_qh_handler(struct nes_device *nesdev, struct nes_cqp_request
        nesqp = qh_chg->nesqp;
 
        /* Should we handle the bad completion */
-       if (cqp_request->major_code) {
-               printk(KERN_ERR PFX "Invalid cqp_request major_code=0x%x\n",
+       if (cqp_request->major_code)
+               WARN(1, PFX "Invalid cqp_request major_code=0x%x\n",
                       cqp_request->major_code);
-               WARN_ON(1);
-       }
 
        switch (nesqp->pau_state) {
        case PAU_DEL_QH: