firmware: arm_sdei: Remove redundant error message in sdei_probe()
authorGavin Shan <gshan@redhat.com>
Tue, 22 Sep 2020 13:04:17 +0000 (23:04 +1000)
committerWill Deacon <will@kernel.org>
Mon, 28 Sep 2020 20:52:22 +0000 (21:52 +0100)
This removes the redundant error message in sdei_probe() because
the case can be identified from the errno in next error message.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200922130423.10173-8-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/firmware/arm_sdei.c

index 5daa4e2..4caeef3 100644 (file)
@@ -982,8 +982,6 @@ static int sdei_probe(struct platform_device *pdev)
                return 0;
 
        err = sdei_api_get_version(&ver);
-       if (err == -EOPNOTSUPP)
-               pr_err("advertised but not implemented in platform firmware\n");
        if (err) {
                pr_err("Failed to get SDEI version: %d\n", err);
                sdei_mark_interface_broken();