Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14af107c authored by Jordan Crouse's avatar Jordan Crouse
Browse files

ufs: Fix usage of WARN_ON()



WARN_ON() was being incorrectly called without a condition in
ufsdbg_intr_fail_request().

Fixes: 2d8e79c2 ("ufs: Porting UFS driver's changes from kernel msm-4.14 to msm-kona")
Change-Id: Ic0dedbad345f74f1686c29e3e4c775737bebb231
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent d797093c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -236,7 +236,7 @@ ufsdbg_intr_fail_request(struct ufs_hba *hba, u32 *intr_status)
			inject_cmd_hang_tm(hba);
		break;
	default:
		WARN_ON();
		WARN_ON(1);
		/* some configurations ignore panics caused by BUG() */
		break;
	}