OSDN Git Service

drm/nouveau/core: drop error message when no compatible FW found
authorBen Skeggs <bskeggs@redhat.com>
Tue, 16 Jun 2020 01:14:41 +0000 (11:14 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:50:47 +0000 (18:50 +1000)
This is less than useful with some subdevs having _nofw variants in their
FWIF lists - it's cleaner to handle them all in the same way.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/firmware.h

index d14b7fb..85bcb80 100644 (file)
@@ -45,11 +45,8 @@ int nvkm_firmware_load_name(const struct nvkm_subdev *subdev, const char *path,
                }                                                              \
        }                                                                      \
                                                                                \
-       if (_ret) {                                                            \
-               nvkm_error(_s, "failed to load firmware\n");                   \
+       if (_ret)                                                              \
                _fwif = ERR_PTR(_ret);                                         \
-       }                                                                      \
-                                                                              \
        _fwif;                                                                 \
 })
 #endif