aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-07-26 14:14:58 +0100
committerChris Wilson <[email protected]>2019-07-26 15:10:53 +0100
commit5cca503817d0e96f8d902c6598d5105dca5e718a (patch)
tree05577f052de8b3929f250ce2e94a7e833d5a2ea8 /net/switchdev/switchdev.c
parentedad25476ba353cfc0f3b34b150888b46f18e8a6 (diff)
drm/i915/perf: Initialise err to 0 before looping over ce->engines
Smatch warning that the loop may be empty causing us to check err before it had been set. Ensure that it is initialised to 0, just in case. v2: Refactor the inner loop for better scooping and clarity Fixes: a9877da2d629 ("drm/i915/oa: Reconfigure contexts on the fly") Signed-off-by: Chris Wilson <[email protected]> Cc: Lionel Landwerlin <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions