We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6dab90 commit f38c4d2Copy full SHA for f38c4d2
drivers/gpu/drm/xe/xe_huc.c
@@ -53,7 +53,6 @@ static int huc_alloc_gsc_pkt(struct xe_huc *huc)
53
struct xe_gt *gt = huc_to_gt(huc);
54
struct xe_device *xe = gt_to_xe(gt);
55
struct xe_bo *bo;
56
- int err;
57
58
/* we use a single object for both input and output */
59
bo = xe_bo_create_pin_map(xe, gt_to_tile(gt), NULL,
@@ -66,13 +65,7 @@ static int huc_alloc_gsc_pkt(struct xe_huc *huc)
66
65
67
huc->gsc_pkt = bo;
68
69
- err = drmm_add_action_or_reset(&xe->drm, free_gsc_pkt, huc);
70
- if (err) {
71
- free_gsc_pkt(&xe->drm, huc);
72
- return err;
73
- }
74
-
75
- return 0;
+ return drmm_add_action_or_reset(&xe->drm, free_gsc_pkt, huc);
76
}
77
78
int xe_huc_init(struct xe_huc *huc)
0 commit comments