From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/tty/serial/8250/serial_cs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/drivers/tty/serial/8250/serial_cs.c b/kernel/drivers/tty/serial/8250/serial_cs.c
index a05c2b6..7c3ea68 100644
--- a/kernel/drivers/tty/serial/8250/serial_cs.c
+++ b/kernel/drivers/tty/serial/8250/serial_cs.c
@@ -449,7 +449,7 @@
static int simple_config(struct pcmcia_device *link)
{
struct serial_info *info = link->priv;
- int i = -ENODEV, try;
+ int ret, try;
/*
* First pass: look for a config entry that looks normal.
@@ -481,8 +481,8 @@
if (info->quirk && info->quirk->config)
info->quirk->config(link);
- i = pcmcia_enable_device(link);
- if (i != 0)
+ ret = pcmcia_enable_device(link);
+ if (ret != 0)
return -1;
return setup_serial(link, info, link->resource[0]->start, link->irq);
}
--
Gitblit v1.6.2