Commit b9985f41 authored by Jack Morgenstein's avatar Jack Morgenstein Committed by David S. Miller

net/mlx4_core: Remove unused *_str functions from the resource tracker

Removed unsued *_str helper functions from resource_tracker.c
Signed-off-by: default avatarJack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5e92d803
...@@ -89,17 +89,6 @@ enum res_qp_states { ...@@ -89,17 +89,6 @@ enum res_qp_states {
RES_QP_HW RES_QP_HW
}; };
static inline const char *qp_states_str(enum res_qp_states state)
{
switch (state) {
case RES_QP_BUSY: return "RES_QP_BUSY";
case RES_QP_RESERVED: return "RES_QP_RESERVED";
case RES_QP_MAPPED: return "RES_QP_MAPPED";
case RES_QP_HW: return "RES_QP_HW";
default: return "Unknown";
}
}
struct res_qp { struct res_qp {
struct res_common com; struct res_common com;
struct res_mtt *mtt; struct res_mtt *mtt;
...@@ -173,16 +162,6 @@ enum res_srq_states { ...@@ -173,16 +162,6 @@ enum res_srq_states {
RES_SRQ_HW, RES_SRQ_HW,
}; };
static inline const char *srq_states_str(enum res_srq_states state)
{
switch (state) {
case RES_SRQ_BUSY: return "RES_SRQ_BUSY";
case RES_SRQ_ALLOCATED: return "RES_SRQ_ALLOCATED";
case RES_SRQ_HW: return "RES_SRQ_HW";
default: return "Unknown";
}
}
struct res_srq { struct res_srq {
struct res_common com; struct res_common com;
struct res_mtt *mtt; struct res_mtt *mtt;
...@@ -195,15 +174,6 @@ enum res_counter_states { ...@@ -195,15 +174,6 @@ enum res_counter_states {
RES_COUNTER_ALLOCATED, RES_COUNTER_ALLOCATED,
}; };
static inline const char *counter_states_str(enum res_counter_states state)
{
switch (state) {
case RES_COUNTER_BUSY: return "RES_COUNTER_BUSY";
case RES_COUNTER_ALLOCATED: return "RES_COUNTER_ALLOCATED";
default: return "Unknown";
}
}
struct res_counter { struct res_counter {
struct res_common com; struct res_common com;
int port; int port;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment