+++ /dev/null
-From d92240d12a9c010e0094bbc9280aae4a6be9a2d5 Mon Sep 17 00:00:00 2001
-From: Arnd Bergmann <arnd@arndb.de>
-Date: Tue, 17 Jan 2017 16:18:41 +0100
-Subject: MIPS: ralink: Remove unused timer functions
-
-From: Arnd Bergmann <arnd@arndb.de>
-
-commit d92240d12a9c010e0094bbc9280aae4a6be9a2d5 upstream.
-
-The functions were originally used for the module unload path,
-but are not referenced any more and just cause warnings:
-
-arch/mips/ralink/timer.c:104:13: error: 'rt_timer_disable' defined but not used [-Werror=unused-function]
-arch/mips/ralink/timer.c:74:13: error: 'rt_timer_free' defined but not used [-Werror=unused-function]
-
-Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
-Fixes: 62ee73d284e7 ("MIPS: ralink: Make timer explicitly non-modular")
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
-Cc: John Crispin <john@phrozen.org>
-Cc: linux-mips@linux-mips.org
-Cc: linux-kernel@vger.kernel.org
-Patchwork: https://patchwork.linux-mips.org/patch/15041/
-Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- arch/mips/ralink/timer.c | 14 --------------
- 1 file changed, 14 deletions(-)
-
---- a/arch/mips/ralink/timer.c
-+++ b/arch/mips/ralink/timer.c
-@@ -69,11 +69,6 @@ static int rt_timer_request(struct rt_ti
- return err;
- }
-
--static void rt_timer_free(struct rt_timer *rt)
--{
-- free_irq(rt->irq, rt);
--}
--
- static int rt_timer_config(struct rt_timer *rt, unsigned long divisor)
- {
- if (rt->timer_freq < divisor)
-@@ -99,15 +94,6 @@ static int rt_timer_enable(struct rt_tim
- return 0;
- }
-
--static void rt_timer_disable(struct rt_timer *rt)
--{
-- u32 t;
--
-- t = rt_timer_r32(rt, TIMER_REG_TMR0CTL);
-- t &= ~TMR0CTL_ENABLE;
-- rt_timer_w32(rt, TIMER_REG_TMR0CTL, t);
--}
--
- static int rt_timer_probe(struct platform_device *pdev)
- {
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
--- /dev/null
+From 7789cd39274c51bf475411fe22a8ee7255082809 Mon Sep 17 00:00:00 2001
+From: Luis de Bethencourt <luisbg@osg.samsung.com>
+Date: Mon, 30 Nov 2015 14:32:17 +0000
+Subject: mvsas: fix misleading indentation
+
+From: Luis de Bethencourt <luisbg@osg.samsung.com>
+
+commit 7789cd39274c51bf475411fe22a8ee7255082809 upstream.
+
+Fix a smatch warning:
+drivers/scsi/mvsas/mv_sas.c:740 mvs_task_prep() warn: curly braces intended?
+
+The code is correct, the indention is misleading. When the device is not
+ready we want to return SAS_PHY_DOWN. But current indentation makes it
+look like we only do so in the else branch of if (mvi_dev).
+
+Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
+Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/scsi/mvsas/mv_sas.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/scsi/mvsas/mv_sas.c
++++ b/drivers/scsi/mvsas/mv_sas.c
+@@ -737,8 +737,8 @@ static int mvs_task_prep(struct sas_task
+ mv_dprintk("device %016llx not ready.\n",
+ SAS_ADDR(dev->sas_addr));
+
+- rc = SAS_PHY_DOWN;
+- return rc;
++ rc = SAS_PHY_DOWN;
++ return rc;
+ }
+ tei.port = dev->port->lldd_port;
+ if (tei.port && !tei.port->port_attached && !tmf) {
mips-update-lemote2f_defconfig-for-cpu_freq_stat-change.patch
mtd-pmcmsp-use-kstrndup-instead-of-kmalloc-strncpy.patch
mips-ralink-cosmetic-change-to-prom_init.patch
-mips-ralink-remove-unused-timer-functions.patch
mips-ralink-remove-unused-rt-_wdt_reset-functions.patch
cpmac-remove-hopeless-warning.patch
mm-memcontrol-avoid-unused-function-warning.patch
usb-serial-io_ti-fix-null-deref-in-interrupt-callback.patch
usb-serial-io_ti-fix-information-leak-in-completion-handler.patch
serial-samsung-continue-to-work-if-dma-request-fails.patch
+mvsas-fix-misleading-indentation.patch