[PATCH] get rid of redundant NULL checks before kfree() in arch/i386/

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
このコミットが含まれているのは:
Jesper Juhl
2005-06-25 14:58:48 -07:00
committed by Linus Torvalds
コミット 4ae6673e02
3個のファイルの変更4行の追加9行の削除

ファイルの表示

@@ -70,8 +70,7 @@ void __init get_mtrr_state(void)
/* Free resources associated with a struct mtrr_state */
void __init finalize_mtrr_state(void)
{
if (mtrr_state.var_ranges)
kfree(mtrr_state.var_ranges);
kfree(mtrr_state.var_ranges);
mtrr_state.var_ranges = NULL;
}