[media] tda18271-common: Convert _tda_printk to return void
No caller or macro uses the return value so make it void. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
da8e77f5e9
commit
0f531e7356
|
@ -714,12 +714,11 @@ fail:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _tda_printk(struct tda18271_priv *state, const char *level,
|
void _tda_printk(struct tda18271_priv *state, const char *level,
|
||||||
const char *func, const char *fmt, ...)
|
const char *func, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
struct va_format vaf;
|
struct va_format vaf;
|
||||||
va_list args;
|
va_list args;
|
||||||
int rtn;
|
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
|
|
||||||
|
@ -727,15 +726,13 @@ int _tda_printk(struct tda18271_priv *state, const char *level,
|
||||||
vaf.va = &args;
|
vaf.va = &args;
|
||||||
|
|
||||||
if (state)
|
if (state)
|
||||||
rtn = printk("%s%s: [%d-%04x|%c] %pV",
|
printk("%s%s: [%d-%04x|%c] %pV",
|
||||||
level, func, i2c_adapter_id(state->i2c_props.adap),
|
level, func, i2c_adapter_id(state->i2c_props.adap),
|
||||||
state->i2c_props.addr,
|
state->i2c_props.addr,
|
||||||
(state->role == TDA18271_MASTER) ? 'M' : 'S',
|
(state->role == TDA18271_MASTER) ? 'M' : 'S',
|
||||||
&vaf);
|
&vaf);
|
||||||
else
|
else
|
||||||
rtn = printk("%s%s: %pV", level, func, &vaf);
|
printk("%s%s: %pV", level, func, &vaf);
|
||||||
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
return rtn;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,8 +139,8 @@ extern int tda18271_debug;
|
||||||
#define DBG_CAL 16
|
#define DBG_CAL 16
|
||||||
|
|
||||||
__attribute__((format(printf, 4, 5)))
|
__attribute__((format(printf, 4, 5)))
|
||||||
int _tda_printk(struct tda18271_priv *state, const char *level,
|
void _tda_printk(struct tda18271_priv *state, const char *level,
|
||||||
const char *func, const char *fmt, ...);
|
const char *func, const char *fmt, ...);
|
||||||
|
|
||||||
#define tda_printk(st, lvl, fmt, arg...) \
|
#define tda_printk(st, lvl, fmt, arg...) \
|
||||||
_tda_printk(st, lvl, __func__, fmt, ##arg)
|
_tda_printk(st, lvl, __func__, fmt, ##arg)
|
||||||
|
|
Loading…
Reference in New Issue