Skip to content
Commit 07239fc8 authored by long.wanglong's avatar long.wanglong Committed by Tony Luck
Browse files

fs/pstore: Optimization function ramoops_init_przs



The value of cxt->record_size does not change in the loop,
so this patch optimize the assign statement by dropping
sz entirely and using cxt->record_size in its place.

Signed-off-by: default avatarWang Long <long.wanglong@huawei.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 42222c2a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment