summaryrefslogtreecommitdiff
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorHu Haowen <2023002089@link.tyut.edu.cn>2023-10-13 16:28:32 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-10-19 00:43:23 +0300
commit94a03e1d22e8dc75ddec159b2efadd4c6354503a (patch)
tree5bd4769fdca322eb192d5c116131eee37ac5b8ba /fs/ocfs2
parent68279f9c9f592e75d30a9ba5154a15e0a0b42ae8 (diff)
downloadlinux-94a03e1d22e8dc75ddec159b2efadd4c6354503a.tar.xz
scripts/show_delta: add __main__ judgement before main code
When doing Python programming it is a nice convention to insert the if statement `if __name__ == "__main__":` before any main code that does actual functionalities to ensure the code will be executed only as a script rather than as an imported module. Hence attach the missing judgement to show_delta. Link: https://lkml.kernel.org/r/20231013132832.165768-1-2023002089@link.tyut.edu.cn Signed-off-by: Hu Haowen <2023002089@link.tyut.edu.cn> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Miguel Ojeda <ojeda@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Nicolas Schier <n.schier@avm.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions