tools: PCI: Add 'h' in optstring of getopt()
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 4 Apr 2019 11:06:08 +0000 (16:36 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 11 Apr 2019 09:13:00 +0000 (10:13 +0100)
commitfbca0b284bd02bf83c9813168d1a58b6ec54d1ca
tree7f99a5c3b8095fbd95eed9a87f9d3c080d677c69
parentff7a5a0a8562434f114035a5a4cbbeec5cb6320c
tools: PCI: Add 'h' in optstring of getopt()

'h' is a valid option character for the pcitest tool used to print
the pcitest usage.

Add 'h' in optstring of getopt() in order to get rid of "pcitest:
invalid option -- 'h'" warning.

While at that remove unncessary case '?'.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
tools/pci/pcitest.c