[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1291571382-2719-24-git-send-email-adobriyan@gmail.com>
Date: Sun, 5 Dec 2010 19:49:21 +0200
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, Alexey Dobriyan <adobriyan@...il.com>
Subject: [PATCH 24/45] 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 0c9f0aa..bae80e3 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -1107,12 +1107,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.2.2
--
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