SIGN IN SIGN UP

redfish-core: Refactor sw_utils lambdas

The getSwMinimumVersion and getSwStatus functions each contained an
inline lambda that triggered the long-lambda ast-grep rule, requiring
an inline suppression (// ast-grep-ignore: long-lambda).

This commit extracts each lambda into a separate named function,
afterGetSwMinimumVersion and afterGetSwStatus respectively, and uses
std::bind_front to handle the asynchronous callback. This aligns the
code with the preferred bmcweb pattern for D-Bus callbacks, improves
readability, and allows the removal of the static analysis
suppressions.

Tested:
- No other functional change.
- Tested on an AST2600 SoC platform.
- Redfish Service Validator passed with no new errors or warnings
introduced.

Change-Id: I5557501b1af6506ebd23301110899b324b94d867
Signed-off-by: Yuvakumar Selvamani <yuvakumars@ami.com>
Y
Yuvakumar Selvamani committed
0efcc91f2af6766a3d05fec1c639e8bececd8754
Parent: db9298d