浏览代码

ASoC: max98925: reading beyond the end of the array

Debug prints are seldom useful and this one has an annoying thing where
it reads one space beyond the end of the array on error.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Dan Carpenter 10 年之前
父节点
当前提交
6eb1c2a63d
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      sound/soc/codecs/max98925.c

+ 0 - 2
sound/soc/codecs/max98925.c

@@ -271,8 +271,6 @@ static inline int max98925_rate_value(struct snd_soc_codec *codec,
 			break;
 			break;
 		}
 		}
 	}
 	}
-	dev_dbg(codec->dev, "%s: sample rate is %d, returning %d\n",
-				__func__, rate_table[i].rate, *value);
 	return ret;
 	return ret;
 }
 }