Commit efe1ac25 authored by Toralf Förster's avatar Toralf Förster Committed by Jeff Kirsher

i40e: fix format mismatch in drivers/net/ethernet/intel/i40e/i40e_debugfs.c

spotted by cppcheck
Signed-off-by: default avatarToralf Förster <toralf.foerster@gmx.de>
Tested-by: default avatarJim Young <jamesx.m.young@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent bf22a6bd
...@@ -1238,7 +1238,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp, ...@@ -1238,7 +1238,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp,
} else if (strncmp(cmd_buf, "add pvid", 8) == 0) { } else if (strncmp(cmd_buf, "add pvid", 8) == 0) {
i40e_status ret; i40e_status ret;
u16 vid; u16 vid;
int v; unsigned int v;
cnt = sscanf(&cmd_buf[8], "%i %u", &vsi_seid, &v); cnt = sscanf(&cmd_buf[8], "%i %u", &vsi_seid, &v);
if (cnt != 2) { if (cnt != 2) {
...@@ -1254,7 +1254,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp, ...@@ -1254,7 +1254,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp,
goto command_write_done; goto command_write_done;
} }
vid = (unsigned)v; vid = v;
ret = i40e_vsi_add_pvid(vsi, vid); ret = i40e_vsi_add_pvid(vsi, vid);
if (!ret) if (!ret)
dev_info(&pf->pdev->dev, dev_info(&pf->pdev->dev,
......
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