firmware_loader: Suppress warning on FW_OPT_NO_WARN flag
authorMukesh Ojha <quic_mojha@quicinc.com>
Mon, 19 Feb 2024 16:39:54 +0000 (22:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2024 22:05:09 +0000 (22:05 +0000)
commit1fe6e4f0b0c47e70735066e889f97c3c6e1e79b2
tree4014915373a758b80587bcc4f3d557f1608977de
parenta54c1d1b859a57a99d5cbdce37ac754cbdd9344a
firmware_loader: Suppress warning on FW_OPT_NO_WARN flag

Some of the warnings are still being printed even if FW_OPT_NO_WARN
is passed for some of the function e.g., firmware_request_nowarn().
Fix it by adding a check for FW_OPT_NO_WARN before printing the warning.

Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20240219163954.7719-1-quic_mojha@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader/main.c