Skip to content

Commit

Permalink
ctladm: don't require the use of "-p" with "port -r", part 2
Browse files Browse the repository at this point in the history
* Remove a now superfluous FALLTHROUGH hint
* Don't specify "-p" with an empty argument in the tests

Reported by:	jhb

(cherry picked from commit 7f50027)
  • Loading branch information
asomers committed Jul 20, 2024
1 parent d15b7f5 commit 9fd9ba3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion usr.sbin/ctladm/ctladm.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt)
break;
}
case CCTL_PORT_MODE_REMOVE:
/* FALLTHROUGH */
case CCTL_PORT_MODE_CREATE: {
bzero(&req, sizeof(req));
strlcpy(req.driver, driver, sizeof(req.driver));
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/ctladm/tests/port.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ cleanup() {
;;
"iscsi")
TARGET=`awk '/target:/ {print $2}' port-create.txt`
ctladm port -r -d $driver -p "$PORTNUM" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target=$TARGET
ctladm port -r -d $driver -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target=$TARGET
;;
esac
fi
Expand Down

0 comments on commit 9fd9ba3

Please sign in to comment.