diff options
Diffstat (limited to 'usr/src/cmd/picl/plugins/sun4u/grover/memcfg')
-rw-r--r-- | usr/src/cmd/picl/plugins/sun4u/grover/memcfg/Makefile | 11 | ||||
-rw-r--r-- | usr/src/cmd/picl/plugins/sun4u/grover/memcfg/piclmemcfg.c | 10 |
2 files changed, 4 insertions, 17 deletions
diff --git a/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/Makefile b/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/Makefile index a1a6034e34..96f5b718fd 100644 --- a/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/Makefile +++ b/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/Makefile @@ -44,12 +44,6 @@ LIBS = $(DYNLIB) ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) -LINTSRC = $(LINTLIB:%.ln=%) -ROOTLINTDIR = $(ROOTLIBDIR) -ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) - -CLEANFILES= $(LINTOUT) $(LINTLIB) - CPPFLAGS += -I$(SRC)/cmd/picl/plugins/common/memcfg CFLAGS += $(CCVERBOSE) LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH) @@ -68,7 +62,6 @@ all := TARGET= all install := TARGET= install clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint _msg := TARGET= _msg POFILE= piclmemcfg.po @@ -91,11 +84,7 @@ $(LIBLINKS): FRC include $(SRC)/cmd/picl/plugins/Makefile.targ include $(SRC)/lib/Makefile.targ -$(ROOTLINTDIR)/%: ../% - $(INS.file) - lint : - $(LINT.c) $(SRCS) $(SUBDIRS): FRC @cd $@; pwd; $(MAKE) $(TARGET) diff --git a/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/piclmemcfg.c b/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/piclmemcfg.c index 30505cc151..0277cb3c4a 100644 --- a/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/piclmemcfg.c +++ b/usr/src/cmd/picl/plugins/sun4u/grover/memcfg/piclmemcfg.c @@ -24,8 +24,6 @@ * All rights reserved. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * This plugin creates memory configuration nodes and properties in the * PICL tree for Grover/Grover+ platform. @@ -101,7 +99,7 @@ create_logical_tree(picl_nodehdl_t memh, mmodinfo_t *mmodinfo) * It means no segment for the slot if size is zero */ if (mmodinfo[i].size == 0) { - memsegh[i] = NULL; + memsegh[i] = 0; continue; } @@ -165,7 +163,7 @@ create_logical_tree(picl_nodehdl_t memh, mmodinfo_t *mmodinfo) * Add reference property to the memory module if memory * module node handle is not NULL. */ - if (mmodinfo[i].memmodh == NULL) + if (mmodinfo[i].memmodh == 0) continue; err = ptree_init_propinfo(&propinfo, PTREE_PROPINFO_VERSION, @@ -185,7 +183,7 @@ create_logical_tree(picl_nodehdl_t memh, mmodinfo_t *mmodinfo) * Undo in the logical memory tree */ for (i = 0; i < TOTAL_MEM_SLOTS; i++) { - if (memsegh[i] == NULL) + if (memsegh[i] == 0) continue; (void) ptree_delete_node(memsegh[i]); @@ -274,7 +272,7 @@ create_physical_tree(picl_nodehdl_t plfh, mmodinfo_t *mmodinfo) * logical memory tree won't link to memory module. */ for (i = 0; i < TOTAL_MEM_SLOTS; i++) - mmodinfo[i].memmodh = NULL; + mmodinfo[i].memmodh = 0; /* * Undo in the physical memory tree |