aoe-use-min-to-simplify-the-code.patch removed from -mm tree
Subsystems (2)
Subject: [failures] aoe-use-min-to-simplify-the-code.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 26 Aug 2013 13:59:14 -0700
The patch titled
Subject: aoe: use min() to simplify the code
has been removed from the -mm tree. Its filename was
aoe-use-min-to-simplify-the-code.patch
This patch was dropped because it had testing failures
------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: aoe: use min() to simplify the code
min() incorporates condition in it. In our case we could do assignment and make a choice at once.
---
drivers/block/aoe/aoedev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/block/aoe/aoedev.c renamed from drivers/block/aoe/aoedev.c~aoe-use-min-to-simplify-the-code +2 -4
@@ -13,6 +13,7 @@#include <linux/kdev_t.h> #include <linux/moduleparam.h> #include <linux/string.h> +#include <linux/kernel.h> #include "aoe.h" static void dummy_timer (ulong );
@@ -248,10 +249,7 @@ user_req(char *s, size_t slen, struct aoif (!d->gd)return 0 ; p =kbasename (d->gd->disk_name); - lim =sizeof (d->gd->disk_name); - lim -= p - d->gd->disk_name; -if (slen < lim) - lim = slen; + lim =min (sizeof (d->gd->disk_name) - (p - d->gd->disk_name), slen);return !strncmp (s, p, lim); }
_
Patches currently in -mm which might be from [email protected] are
aoe-remove-custom-implementation-of-kbasename.patch aoe-suppress-compiler-warnings.patch linux-next.patch