ehea: fix qmr checkpatch complaints
Cc: Jan-Bernd Themann <themann@de.ibm.com> Signed-off-by: Doug Maxey <dwm@austin.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e076c872df
commit
f67c627518
2 changed files with 24 additions and 24 deletions
|
@ -33,8 +33,6 @@
|
||||||
|
|
||||||
|
|
||||||
struct ehea_busmap ehea_bmap = { 0, 0, NULL };
|
struct ehea_busmap ehea_bmap = { 0, 0, NULL };
|
||||||
extern u64 ehea_driver_flags;
|
|
||||||
extern struct work_struct ehea_rereg_mr_task;
|
|
||||||
|
|
||||||
|
|
||||||
static void *hw_qpageit_get_inc(struct hw_queue *queue)
|
static void *hw_qpageit_get_inc(struct hw_queue *queue)
|
||||||
|
@ -235,8 +233,8 @@ int ehea_destroy_cq(struct ehea_cq *cq)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
hcp_epas_dtor(&cq->epas);
|
hcp_epas_dtor(&cq->epas);
|
||||||
|
hret = ehea_destroy_cq_res(cq, NORMAL_FREE);
|
||||||
if ((hret = ehea_destroy_cq_res(cq, NORMAL_FREE)) == H_R_STATE) {
|
if (hret == H_R_STATE) {
|
||||||
ehea_error_data(cq->adapter, cq->fw_handle);
|
ehea_error_data(cq->adapter, cq->fw_handle);
|
||||||
hret = ehea_destroy_cq_res(cq, FORCE_FREE);
|
hret = ehea_destroy_cq_res(cq, FORCE_FREE);
|
||||||
}
|
}
|
||||||
|
@ -301,13 +299,13 @@ struct ehea_eq *ehea_create_eq(struct ehea_adapter *adapter,
|
||||||
if (i == (eq->attr.nr_pages - 1)) {
|
if (i == (eq->attr.nr_pages - 1)) {
|
||||||
/* last page */
|
/* last page */
|
||||||
vpage = hw_qpageit_get_inc(&eq->hw_queue);
|
vpage = hw_qpageit_get_inc(&eq->hw_queue);
|
||||||
if ((hret != H_SUCCESS) || (vpage)) {
|
if ((hret != H_SUCCESS) || (vpage))
|
||||||
goto out_kill_hwq;
|
goto out_kill_hwq;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ((hret != H_PAGE_REGISTERED) || (!vpage)) {
|
if ((hret != H_PAGE_REGISTERED) || (!vpage))
|
||||||
goto out_kill_hwq;
|
goto out_kill_hwq;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -364,7 +362,8 @@ int ehea_destroy_eq(struct ehea_eq *eq)
|
||||||
|
|
||||||
hcp_epas_dtor(&eq->epas);
|
hcp_epas_dtor(&eq->epas);
|
||||||
|
|
||||||
if ((hret = ehea_destroy_eq_res(eq, NORMAL_FREE)) == H_R_STATE) {
|
hret = ehea_destroy_eq_res(eq, NORMAL_FREE);
|
||||||
|
if (hret == H_R_STATE) {
|
||||||
ehea_error_data(eq->adapter, eq->fw_handle);
|
ehea_error_data(eq->adapter, eq->fw_handle);
|
||||||
hret = ehea_destroy_eq_res(eq, FORCE_FREE);
|
hret = ehea_destroy_eq_res(eq, FORCE_FREE);
|
||||||
}
|
}
|
||||||
|
@ -546,7 +545,8 @@ int ehea_destroy_qp(struct ehea_qp *qp)
|
||||||
|
|
||||||
hcp_epas_dtor(&qp->epas);
|
hcp_epas_dtor(&qp->epas);
|
||||||
|
|
||||||
if ((hret = ehea_destroy_qp_res(qp, NORMAL_FREE)) == H_R_STATE) {
|
hret = ehea_destroy_qp_res(qp, NORMAL_FREE);
|
||||||
|
if (hret == H_R_STATE) {
|
||||||
ehea_error_data(qp->adapter, qp->fw_handle);
|
ehea_error_data(qp->adapter, qp->fw_handle);
|
||||||
hret = ehea_destroy_qp_res(qp, FORCE_FREE);
|
hret = ehea_destroy_qp_res(qp, FORCE_FREE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,8 @@
|
||||||
#define EHEA_SECTSIZE (1UL << 24)
|
#define EHEA_SECTSIZE (1UL << 24)
|
||||||
#define EHEA_PAGES_PER_SECTION (EHEA_SECTSIZE >> EHEA_PAGESHIFT)
|
#define EHEA_PAGES_PER_SECTION (EHEA_SECTSIZE >> EHEA_PAGESHIFT)
|
||||||
|
|
||||||
#if (1UL << SECTION_SIZE_BITS) < EHEA_SECTSIZE
|
#if ((1UL << SECTION_SIZE_BITS) < EHEA_SECTSIZE)
|
||||||
#error eHEA module can't work if kernel sectionsize < ehea sectionsize
|
#error eHEA module cannot work if kernel sectionsize < ehea sectionsize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Some abbreviations used here:
|
/* Some abbreviations used here:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue