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

Commit 1f1a5728 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

iommu: iommu-debug: Fix incorrectly formatted string



This was probably trying to work around a checkpatch warning but it
tried to be too clever by half:

drivers/iommu/iommu-debug.c: In function '_size_to_string':
drivers/iommu/iommu-debug.c:407:50: error: left-hand operand of comma expression has no effect [-Werror=unused-value]

Fixes: 4008eb49 ("iommu/arm-smmu: Merge of smmu changes from 4.14 to msm-kona")
Change-Id: Ic0dedbadaf2f8b8e4deb5e71a53af6a02f3d55ae
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 669cca06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-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
@@ -404,7 +404,7 @@ static const char * const _size_to_string(unsigned long size)
	case SZ_1M * 32:
		return "32M";
	}
	return "unknown size, please add to %s function", __func__;
	return "unknown size, please add to _size_to_string function";
}

static int nr_iters_set(void *data, u64 val)