summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-12-24 02:00:45 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 17:17:36 +0400
commit27351b139c4ee989d3e1c66dd8794c65d3ba2c38 (patch)
tree30de478c7ede03a30fb777c4306e4ade5154d967 /net/unix/sysctl_net_unix.c
parenteabd0eaf4f390df102cd24a87300b0e5150cf189 (diff)
downloadlinux-27351b139c4ee989d3e1c66dd8794c65d3ba2c38.tar.xz
[media] dw2102: use symbolic names for dw2102_table indices
dw2102_properties et al refer to entries in the USB-id table using hard-coded indices, as in "&dw2102_table[6]", which means adding new entries before the end of the list has the potential to introduce bugs in code elsewhere in the file. Use C99-style initializers with symbolic names for each index to avoid this. This way, other device tables wanting to reuse the USB ids can use expressions like "&dw2102_table[TEVII_S630]" that do not change as the entries in the table are reordered. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions