treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gt / selftest_engine.c
blobf65b118e261d5fd911b7f54c219b4ce475d2c9b6
1 /*
2 * SPDX-License-Identifier: GPL-2.0
4 * Copyright © 2018 Intel Corporation
5 */
7 #include "i915_selftest.h"
8 #include "selftest_engine.h"
10 int intel_engine_live_selftests(struct drm_i915_private *i915)
12 static int (* const tests[])(struct intel_gt *) = {
13 live_engine_pm_selftests,
14 NULL,
16 struct intel_gt *gt = &i915->gt;
17 typeof(*tests) *fn;
19 for (fn = tests; *fn; fn++) {
20 int err;
22 err = (*fn)(gt);
23 if (err)
24 return err;
27 return 0;