lkml.org 
[lkml]   [2011]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/2] regulator: aat2870: Fix the logic of checking if no id is matched in aat2870_get_regulator
    Hi, Axel

    > In current implementation, the pointer ri is not NULL if no id is
    matched.
    > Fix it by checking i == ARRAY_SIZE(aat2870_regulators) if no id is
    matched.
    You are right, the ri never be NULL in current implementation.
    That's my mistake, I didn't find it when writing and verifying the driver.

    Thanks,
    Jin.


    \
     
     \ /
      Last update: 2011-07-06 08:31    [W:0.018 / U:0.108 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site