hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/i2c/busses/i2c-ibm_iic.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * drivers/i2c/busses/i2c-ibm_iic.c
34 *
....@@ -23,12 +24,6 @@
2324 *
2425 * With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi>
2526 * and even Frodo Looijaard <frodol@dds.nl>
26
- *
27
- * This program is free software; you can redistribute it and/or modify it
28
- * under the terms of the GNU General Public License as published by the
29
- * Free Software Foundation; either version 2 of the License, or (at your
30
- * option) any later version.
31
- *
3227 */
3328
3429 #include <linux/module.h>
....@@ -437,7 +432,7 @@
437432 break;
438433 }
439434
440
- if (unlikely(signal_pending(current))){
435
+ if (signal_pending(current)){
441436 DBG("%d: poll interrupted\n", dev->idx);
442437 ret = -ERESTARTSYS;
443438 break;
....@@ -699,10 +694,8 @@
699694 int ret;
700695
701696 dev = kzalloc(sizeof(*dev), GFP_KERNEL);
702
- if (!dev) {
703
- dev_err(&ofdev->dev, "failed to allocate device data\n");
697
+ if (!dev)
704698 return -ENOMEM;
705
- }
706699
707700 platform_set_drvdata(ofdev, dev);
708701