treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / usb / mtu3 / mtu3_trace.c
blob4f5e7857ec312f43d8e1da562fbb4e9e52dba538
1 // SPDX-License-Identifier: GPL-2.0
2 /**
3 * mtu3_trace.c - trace support
5 * Copyright (C) 2019 MediaTek Inc.
7 * Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
8 */
10 #define CREATE_TRACE_POINTS
11 #include "mtu3_trace.h"
13 void mtu3_dbg_trace(struct device *dev, const char *fmt, ...)
15 struct va_format vaf;
16 va_list args;
18 va_start(args, fmt);
19 vaf.fmt = fmt;
20 vaf.va = &args;
21 trace_mtu3_log(dev, &vaf);
22 va_end(args);