Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: rc-core: simplify logging in rc_register_device

Simplify the logging.

I had some doubts about using the elvis operator as it's GNU extension.
However GNU extensions are explicitely allowed and this operator is
used at several places in the kernel code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Heiner Kallweit and committed by
Mauro Carvalho Chehab
4dc0e908 211477fe

+2 -4
+2 -4
drivers/media/rc/rc-main.c
··· 1420 1420 dev->input_dev->rep[REP_PERIOD] = 125; 1421 1421 1422 1422 path = kobject_get_path(&dev->dev.kobj, GFP_KERNEL); 1423 - printk(KERN_INFO "%s: %s as %s\n", 1424 - dev_name(&dev->dev), 1425 - dev->input_name ? dev->input_name : "Unspecified device", 1426 - path ? path : "N/A"); 1423 + dev_info(&dev->dev, "%s as %s\n", 1424 + dev->input_name ?: "Unspecified device", path ?: "N/A"); 1427 1425 kfree(path); 1428 1426 1429 1427 if (dev->driver_type == RC_DRIVER_IR_RAW) {