The return value is not used by callers of this function so change the function to return void. Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> --- This change is associated to a desire to eventually change printk to return void. drivers/scsi/libsas/sas_ata.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 766098a..2a15a54 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c @@ -375,26 +375,23 @@ static int local_ata_check_ready(struct ata_link *link) } } -static int sas_ata_printk(const char *level, const struct domain_device *ddev, - const char *fmt, ...) +static void sas_ata_printk(const char *level, const struct domain_device *ddev, + const char *fmt, ...) { struct ata_port *ap = ddev->sata_dev.ap; struct device *dev = &ddev->rphy->dev; struct va_format vaf; va_list args; - int r; va_start(args, fmt); vaf.fmt = fmt; vaf.va = &args; - r = printk("%ssas: ata%u: %s: %pV", - level, ap->print_id, dev_name(dev), &vaf); + printk("%ssas: ata%u: %s: %pV", + level, ap->print_id, dev_name(dev), &vaf); va_end(args); - - return r; } static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html