]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: use sizeof(__u16) for each stream number length instead of magic number
authorXin Long <lucien.xin@gmail.com>
Sat, 25 Nov 2017 13:05:32 +0000 (21:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Nov 2017 15:38:45 +0000 (00:38 +0900)
commit52c78c62c083ac8ea1408e92a03faa1b602d310c
tree75fd6707241641bedaf6e6b36192b5ac9955c56f
parent657c9e3668fd753fe660e4aded5fbb8a9fb8e8e4
sctp: use sizeof(__u16) for each stream number length instead of magic number

Now in stream reconf part there are still some places using magic
number 2 for each stream number length. To make it more readable,
this patch is to replace them with sizeof(__u16).

Reported-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c