diff mbox

opensm: removed unnecessary checks in main()

Message ID 20110307100146.GI5577@calypso.voltaire.com (mailing list archive)
State Rejected
Delegated to: Alex Netes
Headers show

Commit Message

Alex Netes March 7, 2011, 10:01 a.m. UTC
None
diff mbox

Patch

diff --git a/opensm/main.c b/opensm/main.c
index 756fe6f..ef4b805 100644
--- a/opensm/main.c
+++ b/opensm/main.c
@@ -987,7 +987,7 @@  int main(int argc, char *argv[])
 			break;
 		case 6:
 			temp = strtol(optarg, NULL, 0);
-			if (temp < 0 || temp >= IB_MAX_NUM_VLS) {
+			if (temp >= IB_MAX_NUM_VLS) {
 				fprintf(stderr,
 					"ERROR: starting lash vl must be between 0 and 15\n");
 				return -1;
@@ -997,7 +997,7 @@  int main(int argc, char *argv[])
 			break;
 		case 7:
 			temp = strtol(optarg, NULL, 0);
-			if (temp < 0 || temp > 15) {
+			if (temp > 15) {
 				fprintf(stderr,
 					"ERROR: SM's SL must be between 0 and 15\n");
 				return -1;