From bf99337c22109fb157b2f86fc06a3d5315f01f19 Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 25 Oct 2018 15:09:32 +0800 Subject: [PATCH] modules:tfa98xx:delete time printk cherrypick from (CR) - fix compile fail. error: 'start_time' may be used uninitialized in this function [-Werror=maybe-uninitialized] - just printk start time. delete it. Change-Id: I846597f1227e958b1360d0cfd61756a67e56c9a1 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1260694 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key (cherry picked from commit b9b7b207c4b80f8e99ecbd0dcf0573525dc88a66) Reviewed-on: https://gerrit.mot.com/1393913 Reviewed-by: Hujun Liao --- sound/soc/codecs/tfa98xx.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sound/soc/codecs/tfa98xx.c b/sound/soc/codecs/tfa98xx.c index ad2b243ea10c..254ecf4c512e 100644 --- a/sound/soc/codecs/tfa98xx.c +++ b/sound/soc/codecs/tfa98xx.c @@ -226,23 +226,9 @@ static enum tfa_error tfa98xx_write_re25(struct tfa_device *tfa, int value) static enum tfa_error tfa98xx_tfa_start(struct tfa98xx *tfa98xx, int next_profile, int vstep) { enum tfa_error err; - ktime_t start_time, stop_time; - u64 delta_time; - - if (trace_level & 8) { - start_time = ktime_get_boottime(); - } err = tfa_dev_start(tfa98xx->tfa, next_profile, vstep); - if (trace_level & 8) { - stop_time = ktime_get_boottime(); - delta_time = ktime_to_ns(ktime_sub(stop_time, start_time)); - do_div(delta_time, 1000); - dev_dbg(&tfa98xx->i2c->dev, "tfa_dev_start(%d,%d) time = %lld us\n", - next_profile, vstep, delta_time); - } - if ((err == tfa_error_ok) && (tfa98xx->set_mtp_cal)) { enum tfa_error err_cal; err_cal = tfa98xx_write_re25(tfa98xx->tfa, tfa98xx->cal_data);