lkml.org 
[lkml]   [2010]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 24/45] kstrtox: convert drivers/infiniband/
    Date

    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.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


    \
     
     \ /
      Last update: 2010-12-05 18:59    [W:0.019 / U:92.184 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site