Resolve compilation errors with unused parameters

TP:
fts.c:4035:14: warning: unused variable 'supplier' [-Wunused-variable]

Change-Id: Idd9030aa7a51f9f9da142481436f1e4c3b95e200
Reviewed-on: https://gerrit.mot.com/1925632
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2021-04-16 14:11:17 +08:00 • committed by litong
commit 5c9a72fc9c

View file

@ -4032,9 +4032,9 @@ err_pinctrl_get:
static int fts_mmi_set_limit_name(struct fts_ts_info *ts)
{
int ret;
const char* supplier = NULL;
#if defined(CONFIG_INPUT_TOUCHSCREEN_MMI) && defined(CONFIG_ST_LIMIT_USE_SUPPLIER)
const char* supplier = NULL;
if (ts->imports && ts->imports->get_supplier) {
ret = ts->imports->get_supplier(ts->dev, &supplier);
if (!ret)