1 From 2fd0a43bfe9e3e53fe566759d6c2cb63ba557ad3 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 28 Jul 2021 09:49:21 +0100
4 Subject: [PATCH] char: vc_mem: Delete dead code
6 There are no error exists once device_create has succeeded, and
7 therefore no need to call device_destroy from vc_mem_init.
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 drivers/char/broadcom/vc_mem.c | 2 --
12 1 file changed, 2 deletions(-)
14 --- a/drivers/char/broadcom/vc_mem.c
15 +++ b/drivers/char/broadcom/vc_mem.c
16 @@ -333,8 +333,6 @@ vc_mem_init(void)
20 - device_destroy(vc_mem_class, vc_mem_devnum);
23 class_destroy(vc_mem_class);