mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
8299d1f057
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
25 lines
719 B
Diff
25 lines
719 B
Diff
From 2fd0a43bfe9e3e53fe566759d6c2cb63ba557ad3 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Wed, 28 Jul 2021 09:49:21 +0100
|
|
Subject: [PATCH] char: vc_mem: Delete dead code
|
|
|
|
There are no error exists once device_create has succeeded, and
|
|
therefore no need to call device_destroy from vc_mem_init.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/char/broadcom/vc_mem.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
--- a/drivers/char/broadcom/vc_mem.c
|
|
+++ b/drivers/char/broadcom/vc_mem.c
|
|
@@ -333,8 +333,6 @@ vc_mem_init(void)
|
|
vc_mem_inited = 1;
|
|
return 0;
|
|
|
|
- device_destroy(vc_mem_class, vc_mem_devnum);
|
|
-
|
|
out_class_destroy:
|
|
class_destroy(vc_mem_class);
|
|
vc_mem_class = NULL;
|