]> git.proxmox.com Git - mirror_qemu.git/commitdiff
misc: Fix typos in comments
authorStefan Weil <sw@weilnetz.de>
Fri, 7 Mar 2014 18:48:59 +0000 (19:48 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 15 Mar 2014 09:54:18 +0000 (13:54 +0400)
Codespell found and fixed these new typos:

* doesnt -> doesn't
* funtion -> function
* perfomance -> performance
* remaing -> remaining

A coding style issue (line too long) was fixed manually.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/intc/arm_gic_kvm.c
hw/net/fsl_etsec/rings.c
target-arm/helper.c
target-ppc/int_helper.c

index 100b6bf3de4a3e8220e97c3ef67ea5faaec54d93..719d2277ec2f849703089aae56ee0ed13631ebbc 100644 (file)
@@ -148,7 +148,7 @@ typedef void (*vgic_translate_fn)(GICState *s, int irq, int cpu,
                                   uint32_t *field, bool to_kernel);
 
 /* synthetic translate function used for clear/set registers to completely
- * clear a setting using a clear-register before setting the remaing bits
+ * clear a setting using a clear-register before setting the remaining bits
  * using a set-register */
 static void translate_clear(GICState *s, int irq, int cpu,
                             uint32_t *field, bool to_kernel)
index 77602722b3e3b163f5a796bf6ff69f1ec8163d2b..26b71f6e81242e108eb8166ea0c9549124d42c57 100644 (file)
@@ -195,8 +195,8 @@ static void process_tx_fcb(eTSEC *etsec)
 
     /* if packet is IP4 and IP checksum is requested */
     if (flags & FCB_TX_IP && flags & FCB_TX_CIP) {
-        /* do IP4 checksum (TODO This funtion does TCP/UDP checksum but not sure
-         * if it also does IP4 checksum. */
+        /* do IP4 checksum (TODO This function does TCP/UDP checksum
+         * but not sure if it also does IP4 checksum.) */
         net_checksum_calculate(etsec->tx_buffer + 8,
                 etsec->tx_buffer_len - 8);
     }
index aa5f22d14f51ba3d25ae42dde04afeea97fe1ef8..f0a1fd48e6b8728614dd3f32af5291056075336f 100644 (file)
@@ -488,7 +488,7 @@ static const ARMCPRegInfo v6_cp_reginfo[] = {
 
 static CPAccessResult pmreg_access(CPUARMState *env, const ARMCPRegInfo *ri)
 {
-    /* Perfomance monitor registers user accessibility is controlled
+    /* Performance monitor registers user accessibility is controlled
      * by PMUSERENR.
      */
     if (arm_current_pl(env) == 0 && !env->cp15.c9_pmuserenr) {
index 63dde94b04714baf6b1b924849c5ef66b4aff718..e14e304457e6fdbbf4e8daf28c531d4a724626f4 100644 (file)
@@ -2216,7 +2216,7 @@ static int bcd_cmp_mag(ppc_avr_t *a, ppc_avr_t *b)
         uint8_t dig_a = bcd_get_digit(a, i, &invalid);
         uint8_t dig_b = bcd_get_digit(b, i, &invalid);
         if (unlikely(invalid)) {
-            return 0; /* doesnt matter */
+            return 0; /* doesn't matter */
         } else if (dig_a > dig_b) {
             return 1;
         } else if (dig_a < dig_b) {