[PATCH] udev: trivial trivialities

Yah yah, really trivial stuff...

	- get_class_device() doesn't need to be exported; it
	  should be static

	- white space cleanup
This commit is contained in:
rml@tech9.net
2005-04-26 21:01:41 -07:00
committed by Greg KH
parent fd14ee04ef
commit d7e954a4ef
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -130,13 +130,13 @@ static struct busdb_record *busdb_fetch(const char *bus, const char *id)
data = tdb_fetch(udevdb, key);
if (data.dptr == NULL || data.dsize == 0)
return NULL;
rec = (struct busdb_record *)malloc(sizeof(struct busdb_record));
if (rec == NULL) {
free(data.dptr);
return NULL;
}
memcpy(rec, data.dptr, sizeof(struct busdb_record));
free(data.dptr);