NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/51540: Replace comma with semicolon.



>Number:         51540
>Category:       kern
>Synopsis:       Replace comma with semicolon.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 09 07:35:01 +0000 2016
>Originator:     henning petersen
>Release:        
>Organization:
>Environment:
>Description:
Replace comman with semicolon.
Found by cocinelle.
>How-To-Repeat:

>Fix:
diff -u -p -r1.1.1.8 aslopt.c
--- sys/external/bsd/acpica/dist/compiler/aslopt.c	4 May 2016 18:15:55 -0000	1.1.1.8
+++ sys/external/bsd/acpica/dist/compiler/aslopt.c	9 Oct 2016 05:49:12 -0000
@@ -133,7 +133,7 @@ OptSearchToRoot (
      * not match, and we cannot use this optimization.
      */
     Path = &(((char *) TargetPath->Pointer)[
-        TargetPath->Length - ACPI_NAME_SIZE]),
+        TargetPath->Length - ACPI_NAME_SIZE]);
     ScopeInfo.Scope.Node = CurrentNode;
 
     /* Lookup the NameSeg using SEARCH_PARENT (search-to-root) */
------------------------------------------------------------------------
diff -u -p -r1.5 dmresrcl2.c
--- sys/external/bsd/acpica/dist/disassembler/dmresrcl2.c	4 May 2016 19:27:57 -0000	1.5
+++ sys/external/bsd/acpica/dist/disassembler/dmresrcl2.c	9 Oct 2016 05:50:35 -0000
@@ -518,7 +518,7 @@ AcpiDmI2cSerialBusDescriptor (
     ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) +
         Resource->CommonSerialBus.TypeDataLength;
 
-    DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset),
+    DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset);
     AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX);
 
     /* ResourceSourceIndex, ResourceUsage */
------------------------------------------------------------------------
	7 Mar 2011 11:25:44 -0000	1.4
+++ sys/external/isc/atheros_hal/dist/ar5416/ar5416_attach.c	9 Oct 2016 05:56:50 -0000
@@ -86,8 +86,8 @@ ar5416InitState(struct ath_hal_5416 *ahp
 	ah->ah_disable			= ar5416Disable;
 	ah->ah_configPCIE		= ar5416ConfigPCIE;
 	ah->ah_perCalibration		= ar5416PerCalibration;
-	ah->ah_perCalibrationN		= ar5416PerCalibrationN,
-	ah->ah_resetCalValid		= ar5416ResetCalValid,
+	ah->ah_perCalibrationN		= ar5416PerCalibrationN;
+	ah->ah_resetCalValid		= ar5416ResetCalValid;
 	ah->ah_setTxPowerLimit		= ar5416SetTxPowerLimit;
 	ah->ah_setTxPower		= ar5416SetTransmitPower;
 	ah->ah_setBoardValues		= ar5416SetBoardValues;
@@ -104,8 +104,8 @@ ar5416InitState(struct ath_hal_5416 *ahp
 	ah->ah_stopPcuReceive		= ar5416StopPcuReceive;
 	ah->ah_setupRxDesc		= ar5416SetupRxDesc;
 	ah->ah_procRxDesc		= ar5416ProcRxDesc;
-	ah->ah_rxMonitor		= ar5416AniPoll,
-	ah->ah_procMibEvent		= ar5416ProcessMibIntr,
+	ah->ah_rxMonitor		= ar5416AniPoll;
+	ah->ah_procMibEvent		= ar5416ProcessMibIntr;
 
 	/* Misc Functions */
 	ah->ah_getDiagState		= ar5416GetDiagState;
-----------------------------------------------------------------------
diff -u -p -r1.7 g2rtc.c
--- sys/arch/dreamcast/dev/g2/g2rtc.c	17 Nov 2014 02:15:48 -0000	1.7
+++ sys/arch/dreamcast/dev/g2/g2rtc.c	9 Oct 2016 05:42:15 -0000
@@ -99,8 +99,8 @@ g2rtc_attach(device_t parent, device_t s
 
 	tch = &sc->sc_tch;
 	tch->cookie = sc;
-	tch->todr_gettime = g2rtc_todr_gettime,
-	tch->todr_settime = g2rtc_todr_settime,
+	tch->todr_gettime = g2rtc_todr_gettime;
+	tch->todr_settime = g2rtc_todr_settime;
 	todr_attach(tch);
 }
-----------------------------------------------------------------------
diff -u -p -r1.18 rtwphyio.c
--- sys/dev/ic/rtwphyio.c	14 Sep 2013 13:09:18 -0000	1.18
+++ sys/dev/ic/rtwphyio.c	9 Oct 2016 05:45:00 -0000
@@ -85,7 +85,7 @@ rtw_bbp_write(struct rtw_regs *regs, u_i
 	KASSERT((val & ~__SHIFTOUT_MASK(RTW_BB_WR_MASK)) == 0);
 
 	wrbbp = __SHIFTIN(addr, RTW_BB_ADDR_MASK) | RTW_BB_WREN |
-	    __SHIFTIN(val, RTW_BB_WR_MASK) | RTW_BB_RD_MASK,
+	    __SHIFTIN(val, RTW_BB_WR_MASK) | RTW_BB_RD_MASK;
 
 	rdbbp = __SHIFTIN(addr, RTW_BB_ADDR_MASK) |
 	    RTW_BB_WR_MASK | RTW_BB_RD_MASK;
------------------------------------------------------------------------
diff -u -p -r1.31 sa11x0_ost.c
--- sys/arch/arm/sa11x0/sa11x0_ost.c	17 Dec 2013 01:29:39 -0000	1.31
+++ sys/arch/arm/sa11x0/sa11x0_ost.c	9 Oct 2016 05:34:01 -0000
@@ -276,7 +276,7 @@ saost_tc_init(void)
 	};
 
 #if defined(CPU_XSCALE_PXA270) && defined(CPU_XSCALE_PXA250)
-	saost_tc.tc_frequency = TIMER_FREQUENCY,
+	saost_tc.tc_frequency = TIMER_FREQUENCY;
 #endif
 	tc_init(&saost_tc);
 }
------------------------------------------------------------------------
diff -u -p -r1.3 mvspi.c
--- sys/dev/marvell/mvspi.c	13 Dec 2015 18:35:26 -0000	1.3
+++ sys/dev/marvell/mvspi.c	9 Oct 2016 05:47:46 -0000
@@ -130,7 +130,7 @@ mvspi_attach(struct device *parent, stru
 	ctl &= MVSPI_DIRHS_MASK;
 	ctl &= MVSPI_1BYTE_MASK;
 
-	PUTREG(sc, MVSPI_INTCONF_REG, ctl),
+	PUTREG(sc, MVSPI_INTCONF_REG, ctl);
 
 	/*
 	 * Initialize SPI controller.
------------------------------------------------------------------------
diff -u -p -r1.8 ieee80211_crypto_wep.c
--- sys/net80211/ieee80211_crypto_wep.c	17 Dec 2008 20:51:37 -0000	1.8
+++ sys/net80211/ieee80211_crypto_wep.c	9 Oct 2016 05:26:57 -0000
@@ -421,7 +421,7 @@ wep_decrypt(struct ieee80211_key *key, s
 	}
 
 	off = hdrlen + wep.ic_header;
-	data_len = m->m_pkthdr.len - (off + wep.ic_trailer),
+	data_len = m->m_pkthdr.len - (off + wep.ic_trailer);
 
 	/* Compute CRC32 over unencrypted data and apply RC4 to data */
 	crc = ~0;
-----------------------------------------------------------------------
diff -u -p -r1.27 gt.c
--- sys/dev/marvell/gt.c	11 Jul 2015 10:32:46 -0000	1.27
+++ sys/dev/marvell/gt.c	9 Oct 2016 05:46:46 -0000
@@ -807,7 +807,7 @@ gt_watchdog_init(struct gt_softc *gt)
 	gt_write(gt, GT_WDOG_Config, GT_WDOG_Config_Ctl1a|GT_WDOG_Preset_DFLT);
 	gt_write(gt, GT_WDOG_Config, GT_WDOG_Config_Ctl1b|GT_WDOG_Preset_DFLT);
 
-	r = gt_read(gt, GT_WDOG_Config),
+	r = gt_read(gt, GT_WDOG_Config);
 	aprint_normal(" status %#x,%#x: %s\n",
 	    r, gt_read(gt, GT_WDOG_Value),
 	    ((r & GT_WDOG_Config_Enb) != 0) ? "enabled" : "botch");
-----------------------------------------------------------------------
diff -u -p -r1.10 ahdilabel.c
--- sys/arch/atari/stand/ahdilabel/ahdilabel.c	28 Mar 2014 13:35:13 -0000	1.10
+++ sys/arch/atari/stand/ahdilabel/ahdilabel.c	9 Oct 2016 05:37:33 -0000
@@ -262,7 +262,7 @@ show_parts (struct ahdi_ptable *ptable, 
 			printf ("%5u/%2u/%3u  ", cylinder, track, sector);
 			sector = ptable->parts[i].start +
 			    (ptable->parts[i].size ?
-			    ptable->parts[i].size - 1 : 0),
+			    ptable->parts[i].size - 1 : 0);
 			cylinder = sector / ptable->secpercyl;
 			sector -= cylinder * ptable->secpercyl;
 			track = sector / ptable->nsectors;
------------------------------------------------------------------------
diff -u -p -r1.18 pmap_tlb.c
--- sys/uvm/pmap/pmap_tlb.c	23 Jul 2016 20:06:25 -0000	1.18
+++ sys/uvm/pmap/pmap_tlb.c	9 Oct 2016 05:25:22 -0000
@@ -338,7 +338,7 @@ pmap_tlb_info_init(struct pmap_tlb_info 
 		ti->ti_asid_hint = KERNEL_PID + 1;
 		ti->ti_asid_max = pmap_tlbs[0]->ti_asid_max;
 		ti->ti_asids_free = ti->ti_asid_max - KERNEL_PID;
-		ti->ti_tlbinvop = TLBINV_NOBODY,
+		ti->ti_tlbinvop = TLBINV_NOBODY;
 		ti->ti_victim = NULL;
 		kcpuset_create(&ti->ti_kcpuset, true);
 		ti->ti_index = pmap_ntlbs++;
-----------------------------------------------------------------------




Home | Main Index | Thread Index | Old Index