iwlwifi: pcie: remove pointless debugfs parsing for csr file
We don't actually care about the value at all, just making sure that we can successfully parse a single integer value, but that's entirely pointless - remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
326477e485
commit
302b5e9e7d
|
@ -2450,16 +2450,6 @@ static ssize_t iwl_dbgfs_csr_write(struct file *file,
|
||||||
size_t count, loff_t *ppos)
|
size_t count, loff_t *ppos)
|
||||||
{
|
{
|
||||||
struct iwl_trans *trans = file->private_data;
|
struct iwl_trans *trans = file->private_data;
|
||||||
char buf[8];
|
|
||||||
int buf_size;
|
|
||||||
int csr;
|
|
||||||
|
|
||||||
memset(buf, 0, sizeof(buf));
|
|
||||||
buf_size = min(count, sizeof(buf) - 1);
|
|
||||||
if (copy_from_user(buf, user_buf, buf_size))
|
|
||||||
return -EFAULT;
|
|
||||||
if (sscanf(buf, "%d", &csr) != 1)
|
|
||||||
return -EFAULT;
|
|
||||||
|
|
||||||
iwl_pcie_dump_csr(trans);
|
iwl_pcie_dump_csr(trans);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue