mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-09 13:42:56 +00:00
Minor style tidy: if( -> if (
Fix a few 'if(' to be 'if (' in a few places, per style(9) and overwhelming usage in the rest of the kernel / tree. MFC After: 3 days Sponsored by: Netflix
This commit is contained in:
parent
f1f9870668
commit
571a1a64b1
@ -61,7 +61,7 @@ physio(struct cdev *dev, struct uio *uio, int ioflag)
|
||||
return (ENXIO);
|
||||
|
||||
/* XXX: sanity check */
|
||||
if(dev->si_iosize_max < PAGE_SIZE) {
|
||||
if (dev->si_iosize_max < PAGE_SIZE) {
|
||||
printf("WARNING: %s si_iosize_max=%d, using DFLTPHYS.\n",
|
||||
devtoname(dev), dev->si_iosize_max);
|
||||
dev->si_iosize_max = DFLTPHYS;
|
||||
|
@ -679,7 +679,7 @@ sysctl_ctx_entry_find(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
|
||||
if (clist == NULL || oidp == NULL)
|
||||
return(NULL);
|
||||
TAILQ_FOREACH(e, clist, link) {
|
||||
if(e->entry == oidp)
|
||||
if (e->entry == oidp)
|
||||
return(e);
|
||||
}
|
||||
return (e);
|
||||
|
@ -371,7 +371,7 @@ cluster_rbuild(struct vnode *vp, u_quad_t filesize, daddr_t lbn,
|
||||
tbp->b_iocmd = BIO_READ;
|
||||
}
|
||||
tbp->b_blkno = blkno;
|
||||
if( (tbp->b_flags & B_MALLOC) ||
|
||||
if ( (tbp->b_flags & B_MALLOC) ||
|
||||
((tbp->b_flags & B_VMIO) == 0) || (run <= 1) )
|
||||
return tbp;
|
||||
|
||||
|
@ -1138,8 +1138,7 @@ parse_mountroot_options(struct mntarg *ma, const char *options)
|
||||
*val = '\0';
|
||||
++val;
|
||||
}
|
||||
if( strcmp(name, "rw") == 0 ||
|
||||
strcmp(name, "noro") == 0) {
|
||||
if (strcmp(name, "rw") == 0 || strcmp(name, "noro") == 0) {
|
||||
/*
|
||||
* The first time we mount the root file system,
|
||||
* we need to mount 'ro', so We need to ignore
|
||||
|
@ -73,7 +73,7 @@ buf_ring_enqueue(struct buf_ring *br, void *buf)
|
||||
*/
|
||||
for (i = br->br_cons_head; i != br->br_prod_head;
|
||||
i = ((i + 1) & br->br_cons_mask))
|
||||
if(br->br_ring[i] == buf)
|
||||
if (br->br_ring[i] == buf)
|
||||
panic("buf=%p already enqueue at %d prod=%d cons=%d",
|
||||
buf, i, br->br_prod_tail, br->br_cons_tail);
|
||||
#endif
|
||||
|
@ -203,7 +203,7 @@ extern const struct efi_ops *active_efi_ops;
|
||||
static inline int efi_rt_ok(void)
|
||||
{
|
||||
|
||||
if(active_efi_ops->rt_ok == NULL)
|
||||
if (active_efi_ops->rt_ok == NULL)
|
||||
return (ENXIO);
|
||||
return (active_efi_ops->rt_ok());
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ name##_SPLAY_INSERT(struct name *head, struct type *elm) \
|
||||
int __comp; \
|
||||
name##_SPLAY(head, elm); \
|
||||
__comp = (cmp)(elm, (head)->sph_root); \
|
||||
if(__comp < 0) { \
|
||||
if (__comp < 0) { \
|
||||
SPLAY_LEFT(elm, field) = SPLAY_LEFT((head)->sph_root, field);\
|
||||
SPLAY_RIGHT(elm, field) = (head)->sph_root; \
|
||||
SPLAY_LEFT((head)->sph_root, field) = NULL; \
|
||||
|
Loading…
Reference in New Issue
Block a user