| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Janz MODULbus VMOD-ICAN3 CAN Interface Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 1455 | 1451 | |
|---|
| 1456 | 1452 | /* process all communication messages */ |
|---|
| 1457 | 1453 | while (true) { |
|---|
| 1458 | | - struct ican3_msg uninitialized_var(msg); |
|---|
| 1454 | + struct ican3_msg msg; |
|---|
| 1459 | 1455 | ret = ican3_recv_msg(mod, &msg); |
|---|
| 1460 | 1456 | if (ret) |
|---|
| 1461 | 1457 | break; |
|---|
| .. | .. |
|---|
| 1940 | 1936 | /* find our IRQ number */ |
|---|
| 1941 | 1937 | mod->irq = platform_get_irq(pdev, 0); |
|---|
| 1942 | 1938 | if (mod->irq < 0) { |
|---|
| 1943 | | - dev_err(dev, "IRQ line not found\n"); |
|---|
| 1944 | 1939 | ret = -ENODEV; |
|---|
| 1945 | 1940 | goto out_free_ndev; |
|---|
| 1946 | 1941 | } |
|---|