bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0724-char-vc_mem-Delete-dead-code.patch
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
5
6 There are no error exists once device_create has succeeded, and
7 therefore no need to call device_destroy from vc_mem_init.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 ---
11 drivers/char/broadcom/vc_mem.c | 2 --
12 1 file changed, 2 deletions(-)
13
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)
17 vc_mem_inited = 1;
18 return 0;
19
20 - device_destroy(vc_mem_class, vc_mem_devnum);
21 -
22 out_class_destroy:
23 class_destroy(vc_mem_class);
24 vc_mem_class = NULL;