Skip to content

Commit

Permalink
iavf: remove unused debug function iavf_debug_d
Browse files Browse the repository at this point in the history
There is no caller of function iavf_debug_d() in tree since
commit 75051ce ("iavf: Fix up debug print macro"),
so it can be removed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
YueHaibing authored and Jeff Kirsher committed Sep 9, 2019
1 parent 6703a60 commit 2410a3d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions drivers/net/ethernet/intel/iavf/iavf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,28 +142,6 @@ enum iavf_status iavf_free_virt_mem_d(struct iavf_hw *hw,
return 0;
}

/**
* iavf_debug_d - OS dependent version of debug printing
* @hw: pointer to the HW structure
* @mask: debug level mask
* @fmt_str: printf-type format description
**/
void iavf_debug_d(void *hw, u32 mask, char *fmt_str, ...)
{
char buf[512];
va_list argptr;

if (!(mask & ((struct iavf_hw *)hw)->debug_mask))
return;

va_start(argptr, fmt_str);
vsnprintf(buf, sizeof(buf), fmt_str, argptr);
va_end(argptr);

/* the debug string is already formatted with a newline */
pr_info("%s", buf);
}

/**
* iavf_schedule_reset - Set the flags and schedule a reset event
* @adapter: board private structure
Expand Down

0 comments on commit 2410a3d

Please sign in to comment.