hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/nfc/st-nci/i2c.c
....@@ -1,18 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * I2C Link Layer for ST NCI NFC controller familly based Driver
34 * Copyright (C) 2014-2015 STMicroelectronics SAS. All rights reserved.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
165 */
176
187 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -83,7 +72,7 @@
8372 */
8473 static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb)
8574 {
86
- int r = -1;
75
+ int r;
8776 struct st_nci_i2c_phy *phy = phy_id;
8877 struct i2c_client *client = phy->i2c_dev;
8978