Skip to content

Commit 0004416

Browse files
dliviubbrezillon
authored andcommitted
drm/panthor: Cleanup unused variable 'cookie'
Commit 962f88b ("drm/panthor: Drop the dev_enter/exit() sections in _irq_suspend/resume()") removed the code that used the 'cookie' variable but left the declaration in place. Remove it. Fixes: 962f88b ("drm/panthor: Drop the dev_enter/exit() sections in _irq_suspend/resume()") Cc: Boris Brezillon <[email protected]> Cc: Steven Price <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 10021ef commit 0004416

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/gpu/drm/panthor/panthor_device.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,6 @@ static irqreturn_t panthor_ ## __name ## _irq_threaded_handler(int irq, void *da
323323
\
324324
static inline void panthor_ ## __name ## _irq_suspend(struct panthor_irq *pirq) \
325325
{ \
326-
int cookie; \
327-
\
328326
pirq->mask = 0; \
329327
gpu_write(pirq->ptdev, __reg_prefix ## _INT_MASK, 0); \
330328
synchronize_irq(pirq->irq); \
@@ -333,8 +331,6 @@ static inline void panthor_ ## __name ## _irq_suspend(struct panthor_irq *pirq)
333331
\
334332
static inline void panthor_ ## __name ## _irq_resume(struct panthor_irq *pirq, u32 mask) \
335333
{ \
336-
int cookie; \
337-
\
338334
atomic_set(&pirq->suspended, false); \
339335
pirq->mask = mask; \
340336
gpu_write(pirq->ptdev, __reg_prefix ## _INT_CLEAR, mask); \

0 commit comments

Comments
 (0)