| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /*-*-linux-c-*-*/ |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | /* |
|---|
| .. | .. |
|---|
| 7 | 8 | |
|---|
| 8 | 9 | Copyright (C) 2006 Lennart Poettering <mzxreary (at) 0pointer (dot) de> |
|---|
| 9 | 10 | |
|---|
| 10 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - (at your option) any later version. |
|---|
| 14 | | - |
|---|
| 15 | | - This program is distributed in the hope that it will be useful, but |
|---|
| 16 | | - WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 18 | | - General Public License for more details. |
|---|
| 19 | | - |
|---|
| 20 | | - You should have received a copy of the GNU General Public License |
|---|
| 21 | | - along with this program; if not, write to the Free Software |
|---|
| 22 | | - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|---|
| 23 | | - 02110-1301, USA. |
|---|
| 24 | 11 | */ |
|---|
| 25 | 12 | |
|---|
| 26 | 13 | /* |
|---|
| .. | .. |
|---|
| 239 | 226 | /* General access */ |
|---|
| 240 | 227 | static u8 ec_read_u8(u8 addr) |
|---|
| 241 | 228 | { |
|---|
| 242 | | - u8 value; |
|---|
| 229 | + u8 value = 0; |
|---|
| 243 | 230 | ec_read(addr, &value); |
|---|
| 244 | 231 | return value; |
|---|
| 245 | 232 | } |
|---|