Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 21:51:10 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365146 - head/sys/dev/tdfx
Message-ID:  <202009012151.081LpAwI041873@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Tue Sep  1 21:51:10 2020
New Revision: 365146
URL: https://svnweb.freebsd.org/changeset/base/365146

Log:
  tdfx: clean up empty lines in .c and .h files

Modified:
  head/sys/dev/tdfx/tdfx_linux.h
  head/sys/dev/tdfx/tdfx_pci.c

Modified: head/sys/dev/tdfx/tdfx_linux.h
==============================================================================
--- head/sys/dev/tdfx/tdfx_linux.h	Tue Sep  1 21:50:47 2020	(r365145)
+++ head/sys/dev/tdfx/tdfx_linux.h	Tue Sep  1 21:51:10 2020	(r365146)
@@ -33,7 +33,6 @@
  *   $FreeBSD$
  */
 
-
 #include <machine/../linux/linux.h>
 #include <machine/../linux/linux_proto.h>
 #include <compat/linux/linux_ioctl.h>

Modified: head/sys/dev/tdfx/tdfx_pci.c
==============================================================================
--- head/sys/dev/tdfx/tdfx_pci.c	Tue Sep  1 21:50:47 2020	(r365145)
+++ head/sys/dev/tdfx/tdfx_pci.c	Tue Sep  1 21:51:10 2020	(r365146)
@@ -75,13 +75,10 @@ __FBSDID("$FreeBSD$");
 #include <dev/tdfx/tdfx_vars.h>
 #include <dev/tdfx/tdfx_pci.h>
 
-
 static devclass_t tdfx_devclass;
 
-
 static int tdfx_count = 0;
 
-
 /* Set up the boot probe/attach routines */
 static device_method_t tdfx_methods[] = {
 	DEVMETHOD(device_probe,		tdfx_probe),
@@ -250,7 +247,7 @@ tdfx_attach(device_t dev) { 
 	tdfx_info->devt = make_dev(&tdfx_cdev, device_get_unit(dev),
 		UID_ROOT, GID_WHEEL, 0600, "3dfx%x", device_get_unit(dev));
 	tdfx_info->devt->si_drv1 = tdfx_info;
-	
+
 	return 0;
 }
 
@@ -259,7 +256,7 @@ tdfx_detach(device_t dev) {
 	struct tdfx_softc* tdfx_info;
 	int retval;
 	tdfx_info = device_get_softc(dev);
-	
+
 	/* Delete allocated resource, of course */
 	bus_release_resource(dev, SYS_RES_MEMORY, tdfx_info->memrid,
 			tdfx_info->memrange);
@@ -303,12 +300,12 @@ tdfx_clrmtrr(device_t dev) {
 	 */
 	int retval, act;
 	struct tdfx_softc *tdfx_info = device_get_softc(dev);
-	
+
 	act = MEMRANGE_SET_REMOVE;
 	retval = mem_range_attr_set(&tdfx_info->mrdesc, &act);
 	return retval;
 }
-	
+
 static int
 tdfx_setmtrr(device_t dev) {
 	/*
@@ -426,13 +423,13 @@ tdfx_mmap(struct cdev *dev, vm_ooffset_t offset, vm_pa
 
 	/**** OLD GET CONFIG ****/
 	/* struct tdfx_softc* tdfx_info; */
-	
+
 	/* Get the configuration for our card XXX*/
 	/*tdfx_info = dev->si_drv1; */
 	/************************/
 
 	struct tdfx_softc* tdfx_info[2];
-	
+
 	tdfx_info[0] = (struct tdfx_softc*)devclass_get_softc(tdfx_devclass, 0);
 
 	/* If, for some reason, its not configured, we bail out */
@@ -449,7 +446,7 @@ tdfx_mmap(struct cdev *dev, vm_ooffset_t offset, vm_pa
 		*paddr = rman_get_start(tdfx_info[0]->memrange) + offset;
 		return 0;
 	}
-	
+
 	if(tdfx_count > 1) {
 		tdfx_info[1] = (struct tdfx_softc*)devclass_get_softc(tdfx_devclass, 1);
 		if((offset & 0xff000000) == tdfx_info[1]->addr0) {
@@ -552,7 +549,6 @@ tdfx_query_fetch(u_int cmd, struct tdfx_pio_data *piod
 			return -EINVAL;
 	}
 
-	
 	/* Read the value and return */
 	switch(piod->size) {
 		case 1:
@@ -675,7 +671,7 @@ tdfx_do_pio_rd(struct tdfx_pio_data *piod)
 		(piod->port != SC_DATA) || (piod->port != VGA_MISC_OUTPUT_READ)) &&
 		(piod->port < tdfx_info->pio0) && (piod->port > tdfx_info->pio0max))
 		return -EPERM;
-	
+
 	/* All VGA STATUS REGS are byte registers, size should never be > 1 */
 	if(piod->size != 1) {
 		return -EINVAL;
@@ -702,7 +698,7 @@ tdfx_do_pio_wt(struct tdfx_pio_data *piod) 
 		(piod->port != VGA_MISC_OUTPUT_READ)) /* Can't write VGA_ST_1C */ &&
 		(piod->port < tdfx_info->pio0) && (piod->port > tdfx_info->pio0max))
 		return -EPERM;
-	
+
 	/* All VGA STATUS REGS are byte registers, size should never be > 1 */
 	if(piod->size != 1) {
 		return -EINVAL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009012151.081LpAwI041873>