• Ilia Mirkin's avatar
    staging: hv: Remove NULL check before kfree · dd9b15dc
    Ilia Mirkin authored
    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: default avatarIlia Mirkin <imirkin@alum.mit.edu>
    Cc: K. Y. Srinivasan <kys@microsoft.com>
    Cc: Haiyang Zhang <haiyangz@microsoft.com>
    Cc: Mike Sterling <mike.sterling@microsoft.com>
    Cc: Abhishek Kane <v-abkane@microsoft.com>
    Cc: Hank Janssen <hjanssen@microsoft.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    dd9b15dc
channel_mgmt.c 24.1 KB