hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/net/can/janz-ican3.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Janz MODULbus VMOD-ICAN3 CAN Interface Driver
34 *
45 * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the
8
- * Free Software Foundation; either version 2 of the License, or (at your
9
- * option) any later version.
106 */
117
128 #include <linux/kernel.h>
....@@ -1455,7 +1451,7 @@
14551451
14561452 /* process all communication messages */
14571453 while (true) {
1458
- struct ican3_msg uninitialized_var(msg);
1454
+ struct ican3_msg msg;
14591455 ret = ican3_recv_msg(mod, &msg);
14601456 if (ret)
14611457 break;
....@@ -1940,7 +1936,6 @@
19401936 /* find our IRQ number */
19411937 mod->irq = platform_get_irq(pdev, 0);
19421938 if (mod->irq < 0) {
1943
- dev_err(dev, "IRQ line not found\n");
19441939 ret = -ENODEV;
19451940 goto out_free_ndev;
19461941 }