When creating a patch for submission to the Linux kernel there are specific guidlines you should follow.
The subject line of your commit should be prefixed with the subsystem:
staging: ks7010: remove local variable foo
You can get some hint on which prefix to use by checking the commit history of a specific file:
git log --pretty=oneline --abbrev-commit path/to/file
There may be multiple prefixes used previously, you may need to check other files in the subsystem to see the preferred style.
Subject lines not longer than approximately 50 characters ease later development.
The subject should use imperative mood. For an explanation of imperative mood see the kernel documentation (Describe your changes, linked below).
You may like to wrap text in the body of the changelog at approximately 72 characters.
How to write the body of a changelog is addressed in the kernel tree documentation. Specifically Section 2 of [https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes Describe your changes].
While there are plenty of examples of how not to do this on LKML it will greatly help with getting your patches merged if you take time to thoroughly and correctly write the changelog. This also helps reviewers and maintainers review your patches. It also helps future developers if they view your patches while bug hunting.
Writing clean, bug free, code includes writing descriptive and technically correct changelog messages. The process of writing changelog messages has the added advantage of greatly improving ones written skills and ones knowledge of the kernel, the C programming language, and programming technique in general.