]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/rtc-zynqmp.c
nvme-tcp: fix possible leakage during error flow
[linux.git] / drivers / rtc / rtc-zynqmp.c
index bb950945ec7f211ef1e78f3a2e4391ffbcd4de71..2c762757fb5423d93d70f4f9bfcae94f5773eb74 100644 (file)
@@ -1,20 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Xilinx Zynq Ultrascale+ MPSoC Real Time Clock Driver
  *
  * Copyright (C) 2015 Xilinx, Inc.
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
- *
  */
 
 #include <linux/delay.h>
@@ -229,10 +218,8 @@ static int xlnx_rtc_probe(struct platform_device *pdev)
                return PTR_ERR(xrtcdev->reg_base);
 
        xrtcdev->alarm_irq = platform_get_irq_byname(pdev, "alarm");
-       if (xrtcdev->alarm_irq < 0) {
-               dev_err(&pdev->dev, "no irq resource\n");
+       if (xrtcdev->alarm_irq < 0)
                return xrtcdev->alarm_irq;
-       }
        ret = devm_request_irq(&pdev->dev, xrtcdev->alarm_irq,
                               xlnx_rtc_interrupt, 0,
                               dev_name(&pdev->dev), xrtcdev);
@@ -242,10 +229,8 @@ static int xlnx_rtc_probe(struct platform_device *pdev)
        }
 
        xrtcdev->sec_irq = platform_get_irq_byname(pdev, "sec");
-       if (xrtcdev->sec_irq < 0) {
-               dev_err(&pdev->dev, "no irq resource\n");
+       if (xrtcdev->sec_irq < 0)
                return xrtcdev->sec_irq;
-       }
        ret = devm_request_irq(&pdev->dev, xrtcdev->sec_irq,
                               xlnx_rtc_interrupt, 0,
                               dev_name(&pdev->dev), xrtcdev);