commit | 6e849ce88cd63efc6650a1826d18ed742eb31999 | [log] [tgz] |
---|---|---|
author | Andreas Gruenbacher <agruen@linbit.com> | Mon Mar 14 17:27:45 2011 +0100 |
committer | Philipp Reisner <philipp.reisner@linbit.com> | Fri Oct 14 16:47:53 2011 +0200 |
tree | a8cf7681d66c6a4b46c0aa803a74649d15958a1b | |
parent | 1b3bb47d526c63a845e3374d6272a67fbe20a468 [diff] |
drbd: Get rid of P_MAX_CMD Instead of artificially enlarging the command decoding arrays to P_MAX_CMD entries, check if an index is within the valid range using the ARRAY_SIZE() macro. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>