Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kernel: fix typos and some coding style in comments

fix lenght to length

Link: http://lkml.kernel.org/r/20190521050937.4370-1-houweitaoo@gmail.com
Signed-off-by: Weitao Hou <houweitaoo@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Weitao Hou and committed by
Linus Torvalds
65f50f25 5ec27ec7

+12 -12
+1 -1
Documentation/devicetree/bindings/usb/s3c2410-usb.txt
··· 4 4 5 5 Required properties: 6 6 - compatible: should be "samsung,s3c2410-ohci" for USB host controller 7 - - reg: address and lenght of the controller memory mapped region 7 + - reg: address and length of the controller memory mapped region 8 8 - interrupts: interrupt number for the USB OHCI controller 9 9 - clocks: Should reference the bus and host clocks 10 10 - clock-names: Should contain two strings
+1 -1
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
··· 53 53 pad = round_up(skb->len, 4) + 4 - skb->len; 54 54 55 55 /* First packet of a A-MSDU burst keeps track of the whole burst 56 - * length, need to update lenght of it and the last packet. 56 + * length, need to update length of it and the last packet. 57 57 */ 58 58 skb_walk_frags(skb, iter) { 59 59 last = iter;
+9 -9
kernel/sysctl.c
··· 188 188 * enum sysctl_writes_mode - supported sysctl write modes 189 189 * 190 190 * @SYSCTL_WRITES_LEGACY: each write syscall must fully contain the sysctl value 191 - * to be written, and multiple writes on the same sysctl file descriptor 192 - * will rewrite the sysctl value, regardless of file position. No warning 193 - * is issued when the initial position is not 0. 191 + * to be written, and multiple writes on the same sysctl file descriptor 192 + * will rewrite the sysctl value, regardless of file position. No warning 193 + * is issued when the initial position is not 0. 194 194 * @SYSCTL_WRITES_WARN: same as above but warn when the initial file position is 195 - * not 0. 195 + * not 0. 196 196 * @SYSCTL_WRITES_STRICT: writes to numeric sysctl entries must always be at 197 - * file position 0 and the value must be fully contained in the buffer 198 - * sent to the write syscall. If dealing with strings respect the file 199 - * position, but restrict this to the max length of the buffer, anything 200 - * passed the max lenght will be ignored. Multiple writes will append 201 - * to the buffer. 197 + * file position 0 and the value must be fully contained in the buffer 198 + * sent to the write syscall. If dealing with strings respect the file 199 + * position, but restrict this to the max length of the buffer, anything 200 + * passed the max length will be ignored. Multiple writes will append 201 + * to the buffer. 202 202 * 203 203 * These write modes control how current file position affects the behavior of 204 204 * updating sysctl values through the proc interface on each write.
+1 -1
sound/soc/qcom/qdsp6/q6asm.c
··· 1194 1194 * q6asm_write_async() - non blocking write 1195 1195 * 1196 1196 * @ac: audio client pointer 1197 - * @len: lenght in bytes 1197 + * @len: length in bytes 1198 1198 * @msw_ts: timestamp msw 1199 1199 * @lsw_ts: timestamp lsw 1200 1200 * @wflags: flags associated with write