[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1296915654-7458-22-git-send-email-adobriyan@gmail.com>
Date: Sat, 5 Feb 2011 16:20:25 +0200
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, adobriyan@...il.com
Subject: [PATCH 22/52] kstrtox: convert drivers/infiniband/
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
drivers/infiniband/hw/nes/nes.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index 3b4ec32..bddf69c 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -1132,12 +1132,15 @@ static ssize_t nes_show_wqm_quanta(struct device_driver *ddp, char *buf)
static ssize_t nes_store_wqm_quanta(struct device_driver *ddp,
const char *buf, size_t count)
{
- unsigned long wqm_quanta_value;
+ unsigned int wqm_quanta_value;
u32 wqm_config1;
u32 i = 0;
struct nes_device *nesdev;
+ int rv;
- strict_strtoul(buf, 0, &wqm_quanta_value);
+ rv = kstrtouint(buf, 0, &wqm_quanta_value);
+ if (rv < 0)
+ return rv;
list_for_each_entry(nesdev, &nes_dev_list, list) {
if (i == ee_flsh_adapter) {
nesdev->nesadapter->wqm_quanta = wqm_quanta_value;
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists