@@ -97,16 +97,12 @@ static ssize_t ath10k_dbg_sta_write_addba(struct file *file,
buf[sizeof(buf) - 1] = '\0';
ret = sscanf(buf, "%u %u", &tid, &buf_size);
- if (ret != 2) {
- ath10k_warn(ar, "ex: echo <tid> <buffer size> >addba\n");
+ if (ret != 2)
return -EINVAL;
- }
/* Valid TID values are 0 through 15 */
- if (tid > HTT_DATA_TX_EXT_TID_MGMT - 2) {
- ath10k_warn(ar, "Invalid TID %u\n", tid);
+ if (tid > HTT_DATA_TX_EXT_TID_MGMT - 2)
return -EINVAL;
- }
mutex_lock(&ar->conf_mutex);
if ((ar->state != ATH10K_STATE_ON) ||