]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/checkpatch.pl
Fix spelling in comments, documentation and messages
[mirror_qemu.git] / scripts / checkpatch.pl
index cce8f862514477ebfe5d273eb88cc170969d19c5..8850a5f436dbca0f5139c38c0238c5ab63a1dc7c 100755 (executable)
@@ -1907,7 +1907,7 @@ sub process {
                        my $ok = 0;
                        for (my $ln = $linenr - 1; $ln >= $first_line; $ln--) {
                                #print "CHECK<$lines[$ln - 1]\n";
-                               # we have a preceeding printk if it ends
+                               # we have a preceding printk if it ends
                                # with "\n" ignore it, else it is to blame
                                if ($lines[$ln - 1] =~ m{\bprintk\(}) {
                                        if ($rawlines[$ln - 1] !~ m{\\n"}) {
@@ -1999,7 +1999,7 @@ sub process {
                        for (my $n = 0; $n < $#elements; $n += 2) {
                                $off += length($elements[$n]);
 
-                               # Pick up the preceeding and succeeding characters.
+                               # Pick up the preceding and succeeding characters.
                                my $ca = substr($opline, 0, $off);
                                my $cc = '';
                                if (length($opline) >= ($off + length($elements[$n + 1]))) {