lkml.org 
[lkml]   [2009]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 05/11] hfs: clenaup unload_nls() calls
    unload_nls() can be called with a NULL pointer now. Remove the pointer
    checks.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Roman Zippel <zippel@linux-m68k.org>
    ---
    fs/hfs/mdb.c | 6 ++----
    1 file changed, 2 insertions(+), 4 deletions(-)

    Index: linux-2.6-tip/fs/hfs/mdb.c
    ===================================================================
    --- linux-2.6-tip.orig/fs/hfs/mdb.c
    +++ linux-2.6-tip/fs/hfs/mdb.c
    @@ -344,10 +344,8 @@ void hfs_mdb_put(struct super_block *sb)
    brelse(HFS_SB(sb)->mdb_bh);
    brelse(HFS_SB(sb)->alt_mdb_bh);

    - if (HFS_SB(sb)->nls_io)
    - unload_nls(HFS_SB(sb)->nls_io);
    - if (HFS_SB(sb)->nls_disk)
    - unload_nls(HFS_SB(sb)->nls_disk);
    + unload_nls(HFS_SB(sb)->nls_io);
    + unload_nls(HFS_SB(sb)->nls_disk);

    free_pages((unsigned long)HFS_SB(sb)->bitmap, PAGE_SIZE < 8192 ? 1 : 0);
    kfree(HFS_SB(sb));



    \
     
     \ /
      Last update: 2009-08-14 14:47    [W:0.022 / U:99.252 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site