lkml.org 
[lkml]   [2011]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 07/24] staging: hv: Remove NULL check before kfree
    On Sun, Mar 13, 2011 at 12:29:00AM -0500, Ilia Mirkin wrote:
    > This patch was generated by the following semantic patch:
    > // <smpl>
    > @@ expression E; @@
    > - if (E != NULL) { kfree(E); }
    > + kfree(E);
    >
    > @@ expression E; @@
    > - if (E != NULL) { kfree(E); E = NULL; }
    > + kfree(E);
    > + E = NULL;
    > // </smpl>
    >
    > Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
    > ---
    > drivers/staging/hv/channel_mgmt.c | 3 +--
    > drivers/staging/hv/connection.c | 4 +---
    > drivers/staging/hv/hv_mouse.c | 12 ++++--------
    > 3 files changed, 6 insertions(+), 13 deletions(-)

    Let me sync up with the other hyperv patches in my queue before applying
    this one, don't worry, it's not lost...

    thanks,

    greg k-h


    \
     
     \ /
      Last update: 2011-03-14 20:17    [W:0.021 / U:91.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site