Commit 2bc43c92 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sn: klgraph.c clean up

From: Pat Gefre <pfg@sgi.com>

klgraph.c clean up
parent 4e8caa8f
...@@ -750,7 +750,7 @@ hwgraph_inventory_remove( vertex_hdl_t de, ...@@ -750,7 +750,7 @@ hwgraph_inventory_remove( vertex_hdl_t de,
* "/" but rather it just stops right before /dev .. * "/" but rather it just stops right before /dev ..
*/ */
int int
hwgraph_vertex_name_get(vertex_hdl_t vhdl, char *buf, uint buflen) hwgraph_vertex_name_get(vertex_hdl_t vhdl, char *buf, unsigned int buflen)
{ {
char *locbuf; char *locbuf;
int pos; int pos;
...@@ -785,7 +785,7 @@ hwgraph_vertex_name_get(vertex_hdl_t vhdl, char *buf, uint buflen) ...@@ -785,7 +785,7 @@ hwgraph_vertex_name_get(vertex_hdl_t vhdl, char *buf, uint buflen)
#define DEVNAME_UNKNOWN "UnknownDevice" #define DEVNAME_UNKNOWN "UnknownDevice"
char * char *
vertex_to_name(vertex_hdl_t vhdl, char *buf, uint buflen) vertex_to_name(vertex_hdl_t vhdl, char *buf, unsigned int buflen)
{ {
if (hwgraph_vertex_name_get(vhdl, buf, buflen) == GRAPH_SUCCESS) if (hwgraph_vertex_name_get(vhdl, buf, buflen) == GRAPH_SUCCESS)
return(buf); return(buf);
......
...@@ -26,12 +26,6 @@ extern vertex_hdl_t hwgraph_root; ...@@ -26,12 +26,6 @@ extern vertex_hdl_t hwgraph_root;
extern void io_module_init(void); extern void io_module_init(void);
extern int pci_bus_to_hcl_cvlink(void); extern int pci_bus_to_hcl_cvlink(void);
/* #define DEBUG_IO_INIT 1 */
#ifdef DEBUG_IO_INIT
#define DBG(x...) printk(x)
#else
#define DBG(x...)
#endif /* DEBUG_IO_INIT */
/* /*
* This routine is responsible for the setup of all the IRIX hwgraph style * This routine is responsible for the setup of all the IRIX hwgraph style
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment