• Markus Pargmann's avatar
    nbd: Fix debugfs error handling · 27ea43fe
    Markus Pargmann authored
    Static checker complains about the implemented error handling. It is
    indeed wrong. We don't care about the return values of created debugfs
    files.
    
    We only have to check the return values of created dirs for NULL
    pointer. If we use a null pointer as parent directory for files, this
    may lead to debugfs files in wrong places.
    Signed-off-by: default avatarMarkus Pargmann <mpa@pengutronix.de>
    27ea43fe
nbd.c 25.8 KB