svn commit: r298435 - in head/sys: cam/scsi dev/ae dev/digi dev/ed i386/i386
Pedro F. Giffuni
pfg at FreeBSD.org
Thu Apr 21 20:30:39 UTC 2016
Author: pfg
Date: Thu Apr 21 20:30:38 2016
New Revision: 298435
URL: https://svnweb.freebsd.org/changeset/base/298435
Log:
Yet more redundant parenthesis from r298431.
Mea culpa.
Modified:
head/sys/cam/scsi/scsi_all.c
head/sys/dev/ae/if_ae.c
head/sys/dev/digi/digi_isa.c
head/sys/dev/ed/if_ed_hpp.c
head/sys/i386/i386/i686_mem.c
Modified: head/sys/cam/scsi/scsi_all.c
==============================================================================
--- head/sys/cam/scsi/scsi_all.c Thu Apr 21 19:59:55 2016 (r298434)
+++ head/sys/cam/scsi/scsi_all.c Thu Apr 21 20:30:38 2016 (r298435)
@@ -4702,7 +4702,7 @@ scsi_sense_desc_sbuf(struct sbuf *sb, st
{
int i;
- for (i = 0; i < (nitems(scsi_sense_printers)); i++) {
+ for (i = 0; i < nitems(scsi_sense_printers); i++) {
struct scsi_sense_desc_printer *printer;
printer = &scsi_sense_printers[i];
@@ -7285,8 +7285,7 @@ struct scsi_attrib_table_entry *
scsi_get_attrib_entry(uint32_t id)
{
return (scsi_find_attrib_entry(scsi_mam_attr_table,
- nitems(scsi_mam_attr_table),
- id));
+ nitems(scsi_mam_attr_table), id));
}
int
Modified: head/sys/dev/ae/if_ae.c
==============================================================================
--- head/sys/dev/ae/if_ae.c Thu Apr 21 19:59:55 2016 (r298434)
+++ head/sys/dev/ae/if_ae.c Thu Apr 21 20:30:38 2016 (r298435)
@@ -85,7 +85,7 @@ static struct ae_dev {
{ VENDORID_ATTANSIC, DEVICEID_ATTANSIC_L2,
"Attansic Technology Corp, L2 FastEthernet" },
};
-#define AE_DEVS_COUNT (nitems(ae_devs))
+#define AE_DEVS_COUNT nitems(ae_devs)
static struct resource_spec ae_res_spec_mem[] = {
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
Modified: head/sys/dev/digi/digi_isa.c
==============================================================================
--- head/sys/dev/digi/digi_isa.c Thu Apr 21 19:59:55 2016 (r298434)
+++ head/sys/dev/digi/digi_isa.c Thu Apr 21 20:30:38 2016 (r298435)
@@ -68,7 +68,7 @@ static u_long digi_validmem[] = {
0xf6000000, 0xf7000000, 0xf8000000, 0xf9000000, 0xfa000000, 0xfb000000,
0xfc000000, 0xfd000000, 0xfe000000, 0xff000000
};
-#define DIGI_NVALIDMEM (nitems(digi_validmem))
+#define DIGI_NVALIDMEM nitems(digi_validmem)
static u_char *
digi_isa_setwin(struct digi_softc *sc, unsigned int addr)
Modified: head/sys/dev/ed/if_ed_hpp.c
==============================================================================
--- head/sys/dev/ed/if_ed_hpp.c Thu Apr 21 19:59:55 2016 (r298434)
+++ head/sys/dev/ed/if_ed_hpp.c Thu Apr 21 20:30:38 2016 (r298435)
@@ -214,7 +214,7 @@ ed_probe_HP_pclanp(device_t dev, int por
* Check for impossible IRQ.
*/
- if (irq >= (nitems(ed_hpp_intr_val)))
+ if (irq >= nitems(ed_hpp_intr_val))
return (ENXIO);
/*
Modified: head/sys/i386/i386/i686_mem.c
==============================================================================
--- head/sys/i386/i386/i686_mem.c Thu Apr 21 19:59:55 2016 (r298434)
+++ head/sys/i386/i386/i686_mem.c Thu Apr 21 20:30:38 2016 (r298435)
@@ -113,7 +113,7 @@ static int i686_mtrrtomrt[] = {
MDF_WRITEBACK
};
-#define MTRRTOMRTLEN (nitems(i686_mtrrtomrt))
+#define MTRRTOMRTLEN nitems(i686_mtrrtomrt)
static int
i686_mtrr2mrt(int val)
More information about the svn-src-head
mailing list