Remove unnecessary local variable "ret" and its assignments from
functions wilc_set_tx_power and wilc_get_tx_power. Suggested by
Coccinelle.
Signed-off-by: Himadri Pandya <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Remove unnecessary parentheses from right hand side of
assignments. Suggested by Coccinelle.
Signed-off-by: Himadri Pandya <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Remove unnecessary parentheses around the right hand side of assignment
operator. Issue found using Coccinelle.
Signed-off-by: Himadri Pandya <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
New instances of ENOSYS are errors. ENOSYS should be used for nonexistent
syscalls only. Use ENODEV instead as there should not be any other
driver for a virtual device that might share buffers with vboxvideo.
In vbox_prime.c, replace all occurrences of -ENOSYS with -ENODEV to fix
checkpatch.pl warning:
WARNING: ENOSYS means 'invalid syscall nr' and nothing else
Signed-off-by: Debleena Sen <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Edit CamelCase in local variables across 4 files:
- sm750fb/ddk750_chip.c
- sm750fb/ddk750_chip.h
- sm750fb/ddk750_dvi.c
- sm750fb/ddk750_sii164.c
to comply with the coding style. Also edit associated comments
accordingly.
Issue found with Checkpatch.
Signed-off-by: Nishka Dasgupta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Move function arguments that go over the 80 characters a line limit to a new line.
"WARNING: line over 80 characters".
Signed-off-by: Branden Bonaby <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Correct SPDX-License-Identifier comment characters to silence
checkpatch.pl warning:
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
Signed-off-by: Wentao Cai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Correct SPDX-License-Identifier comment characters to silence
checkpatch.pl warning:
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
Signed-off-by: Wentao Cai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Correct SPDX-License-Identifier comment characters to silence
checkpatch.pl warning:
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
Signed-off-by: Wentao Cai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Correct SPDX-License-Identifier comment characters to silence
checkpatch.pl warning:
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
Signed-off-by: Wentao Cai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Remove unnecessary local variable "frame_number" and its assignments from function
cvmx_usb_get_frame_numbe. Suggested by Coccinelle.
Signed-off-by: Himadri Pandya <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Convert a macro to an inline function to improve type safety and make
the code simpler.
Signed-off-by: Bhagyashri Dighole <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Remove the MACbIsRegBitsOn function, as it is never called in kernel tree.
Signed-off-by: Madhumitha Prabakaran <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Change '--help--' in Kconfig file to silence checkpatch.pl warning:
WARNING: prefer 'help' over '---help---' for new help texts
Signed-off-by: Wentao Cai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Add the SPDX GPL-2.0 license identifier to fix checkpatch.pl warning.
Issue found by checkpatch.pl warning:
"WARNING: Missing or malformed SPDX-License-Identifier tag in line 1"
Signed-off-by: Jules Irenge <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
In function sm750_hw_copyarea() of sm750_accel.c, there are
some comments in ASCII graphs, describing 4 possible scenarios
of overlapping areas when copying an area. However, the graphs
have broken indention.
The entire SiliconMotion series video controllers, including
SM501, SM712 and SM750 have similar 2D engines, yet, I have
not seen a single version of it with ASCII graphs properly
formatted...
Fix the the misleading ASCII graphs. It would eliminate the
confusions and improve code readability.
Signed-off-by: Yifeng Li <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This patch fixes a few spacing warnings from checkpatch.pl,
as well as an incorrect spacing between a function type and
the function name.
Signed-off-by: Robert Eshleman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix all the alignment issues in the file to
get rid of checkpatch warnings
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Remove an unused function prototype as there is no such function in the
kernel tree.
Signed-off-by: Madhumitha Prabakaran <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Replace all NULL comparisons in the file
to get rid of checkpatch warnings
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Add spaces around math operators to get rid of checkpatch warning
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Convert macro into an inline function to make codebase better
Signed-off-by: Madhumitha Prabakaran <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix function return type and function arguments to improve readbility.
Signed-off-by: Madhumitha Prabakaran <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix the check as per Linux kernel style for use of spaces
CHECK: spaces preferred around that '-'
Signed-off-by: Madhumitha Prabakaran <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix coding style issues, detected by checkpatch.pl "CHECK: Comparison to
NULL could be written !tty->ops->write"
Signed-off-by: Bhagyashri Dighole <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix all the alignment with open parenthesis issues
detected by checkpatch
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix open parenthesis at the end of line
to improve readability
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Get rid of unnecessary line continuations in
boolean expressions, warning detected by checkpatch
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This patch replace '--help--' in Kconfig to silence checkpatch.pl
warning:
WARNING: prefer 'help' over '---help---' for new help texts
Signed-off-by: Wentao Cai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Fix line with over 80 characters to get rid of the warning
given by checkpatch
Signed-off-by: Daniela Mormocea <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>