lkml.org 
[lkml]   [2010]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/21] fs/ufs/util.c: Remove unnecessary kmalloc casts
    Date
    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    fs/ufs/util.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/fs/ufs/util.c b/fs/ufs/util.c
    index 85a7fc9..9c44f32 100644
    --- a/fs/ufs/util.c
    +++ b/fs/ufs/util.c
    @@ -26,8 +26,7 @@ struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi,
    count = size >> uspi->s_fshift;
    if (count > UFS_MAXFRAG)
    return NULL;
    - ubh = (struct ufs_buffer_head *)
    - kmalloc (sizeof (struct ufs_buffer_head), GFP_KERNEL);
    + ubh = kmalloc(sizeof(struct ufs_buffer_head), GFP_KERNEL);
    if (!ubh)
    return NULL;
    ubh->fragment = fragment;
    --
    1.7.0.3.311.g6a6955


    \
     
     \ /
      Last update: 2010-06-01 05:27    [W:0.017 / U:90.360 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site