mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 17:04:50 -04:00
RDMA/qib: Delete empty check_cc_key function
Function always returns zero, just delete it. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
688eec9d3d
commit
874e476ba9
@@ -2296,18 +2296,11 @@ static int cc_set_congestion_control_table(struct ib_cc_mad *ccp,
|
||||
return reply_failure((struct ib_smp *) ccp);
|
||||
}
|
||||
|
||||
static int check_cc_key(struct qib_ibport *ibp,
|
||||
struct ib_cc_mad *ccp, int mad_flags)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int process_cc(struct ib_device *ibdev, int mad_flags,
|
||||
u8 port, const struct ib_mad *in_mad,
|
||||
struct ib_mad *out_mad)
|
||||
{
|
||||
struct ib_cc_mad *ccp = (struct ib_cc_mad *)out_mad;
|
||||
struct qib_ibport *ibp = to_iport(ibdev, port);
|
||||
int ret;
|
||||
|
||||
*out_mad = *in_mad;
|
||||
@@ -2318,10 +2311,6 @@ static int process_cc(struct ib_device *ibdev, int mad_flags,
|
||||
goto bail;
|
||||
}
|
||||
|
||||
ret = check_cc_key(ibp, ccp, mad_flags);
|
||||
if (ret)
|
||||
goto bail;
|
||||
|
||||
switch (ccp->method) {
|
||||
case IB_MGMT_METHOD_GET:
|
||||
switch (ccp->attr_id) {
|
||||
|
||||
Reference in New Issue
Block a user