Commit a08df15e authored by Tom Rix's avatar Tom Rix Committed by Jakub Kicinski

net: cxgb3: remove unused fl_to_qset function

clang with W=1 reports
drivers/net/ethernet/chelsio/cxgb3/sge.c:169:32: error: unused function
  'fl_to_qset' [-Werror,-Wunused-function]
static inline struct sge_qset *fl_to_qset(const struct sge_fl *q, int qidx)
                               ^
This function is not used, so remove it.
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20230319172433.1708161-1-trix@redhat.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 134d8368
...@@ -166,11 +166,6 @@ static u8 flit_desc_map[] = { ...@@ -166,11 +166,6 @@ static u8 flit_desc_map[] = {
#endif #endif
}; };
static inline struct sge_qset *fl_to_qset(const struct sge_fl *q, int qidx)
{
return container_of(q, struct sge_qset, fl[qidx]);
}
static inline struct sge_qset *rspq_to_qset(const struct sge_rspq *q) static inline struct sge_qset *rspq_to_qset(const struct sge_rspq *q)
{ {
return container_of(q, struct sge_qset, rspq); return container_of(q, struct sge_qset, rspq);
......
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