• Bastian Hecht's avatar
    mtd: sh_flctl: Minor cleanups · e8a9d8f3
    Bastian Hecht authored
    Some small fixes to avoid sparse and smatch complain. Other cosmetic fixes
    as well.
    
    - Change of the type of the member index in struct sh_flctl from signed
    to unsigned. We use index by addressing array members, so unsigned is more
    concise here. Adapt functions relying on sh_flctl::index.
    - Remove a blurring cast in write_fiforeg().
    - Apply consistent naming scheme when refering to the data buffer.
    - Shorten some unnecessarily verbose functions.
    - Remove spaces at start of lines.
    Signed-off-by: default avatarBastian Hecht <hechtb@gmail.com>
    Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
    e8a9d8f3
sh_flctl.c 23.5 KB