On Saturday, November 06, 2010 4:13:23 am Garrett Cooper wrote:
The explicit 'return (ENOMEM)' calls are fine as-is. I do not think they need
changing.
Having static char arrays of '15' rather than '16' is probably pointless. The
stack is already at least 4-byte aligned on all the architectures we support,
so a 15-byte char array will actually be 16 bytes. It was chose to be a good
enough value, not an exact fit. An exact fit is not important here.
Moving the 'buf' in mpt_raid_level() is a style bug. It should stay where it
is. Same with 'buf' in mpt_volstate() and mpt_pdstate().
IOC_STATUS_SUCCESS() returns a boolean, it is appropriate to test it with !
rather than == 0. It is also easier for a person to read the code that way.
--
John Baldwin
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"