diff options
author | Joe Perches <joe@perches.com> | 2014-09-22 14:50:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-23 17:03:59 -0300 |
commit | 0f531e735651555568816b6cf7631816003dc1d2 (patch) | |
tree | c6029f115fa8466012ba99ecefa3f06cb0d32f5e /drivers/media/tuners/tda18271-common.c | |
parent | da8e77f5e945ee92a6225c18f545630e07fc41bc (diff) | |
download | linux-stable-0f531e735651555568816b6cf7631816003dc1d2.tar.gz linux-stable-0f531e735651555568816b6cf7631816003dc1d2.tar.bz2 linux-stable-0f531e735651555568816b6cf7631816003dc1d2.zip |
[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>
Diffstat (limited to 'drivers/media/tuners/tda18271-common.c')
-rw-r--r-- | drivers/media/tuners/tda18271-common.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/media/tuners/tda18271-common.c b/drivers/media/tuners/tda18271-common.c index 18c77afe2e4f..86e5e3110118 100644 --- a/drivers/media/tuners/tda18271-common.c +++ b/drivers/media/tuners/tda18271-common.c @@ -714,12 +714,11 @@ fail: return ret; } -int _tda_printk(struct tda18271_priv *state, const char *level, - const char *func, const char *fmt, ...) +void _tda_printk(struct tda18271_priv *state, const char *level, + const char *func, const char *fmt, ...) { struct va_format vaf; va_list args; - int rtn; va_start(args, fmt); @@ -727,15 +726,13 @@ int _tda_printk(struct tda18271_priv *state, const char *level, vaf.va = &args; if (state) - rtn = printk("%s%s: [%d-%04x|%c] %pV", - level, func, i2c_adapter_id(state->i2c_props.adap), - state->i2c_props.addr, - (state->role == TDA18271_MASTER) ? 'M' : 'S', - &vaf); + printk("%s%s: [%d-%04x|%c] %pV", + level, func, i2c_adapter_id(state->i2c_props.adap), + state->i2c_props.addr, + (state->role == TDA18271_MASTER) ? 'M' : 'S', + &vaf); else - rtn = printk("%s%s: %pV", level, func, &vaf); + printk("%s%s: %pV", level, func, &vaf); va_end(args); - - return rtn; } |