• Christoph Hellwig's avatar
    sg: simplify procfs code · b8b1483d
    Christoph Hellwig authored
    Use remove_proc_subtree to remove the whole subtree on cleanup, and
    unwind the registration loop into individual calls.  Switch to use
    proc_create_seq where applicable.
    
    Also don't bother handling proc_create* failures - the driver works
    perfectly fine without the proc files, and the cleanup will handle
    missing files gracefully.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    b8b1483d
sg.c 70 KB