Print this page
10097 indenting fixes in usr/src/{lib,common}

Split Close
Expand all
Collapse all
          --- old/usr/src/common/mc/mc-amd/mcamd_rowcol.c
          +++ new/usr/src/common/mc/mc-amd/mcamd_rowcol.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   *
  21   21   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  22   22   * Use is subject to license terms.
  23   23   */
  24   24  
  25      -#pragma ident   "%Z%%M% %I%     %E% SMI"
       25 +/*
       26 + * Copyright (c) 2018, Joyent, Inc.
       27 + */
  26   28  
  27   29  #include <mcamd_api.h>
  28   30  #include <mcamd_err.h>
  29   31  #include <mcamd_rowcol_impl.h>
  30   32  
  31   33  /*
  32   34   * Convenience structures to stash MC and CS properties in.
  33   35   */
  34   36  struct mcprops {
  35   37          mcamd_prop_t num;               /* corresponding chip number */
↓ open down ↓ 525 lines elided ↑ open up ↑
 561  563                                  return (mcamd_set_errno(hdl,
 562  564                                      EMCAMD_TREEINVALID));
 563  565                          }
 564  566                          if (csnum == mcp.badcs)
 565  567                                  break;
 566  568                  }
 567  569  
 568  570                  if (cs == NULL) {
 569  571                          mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_offset_to_pa: "
 570  572                              "failed to find cs for bad cs#%d\n", mcp.badcs);
 571      -                                return (mcamd_set_errno(hdl,
 572      -                                    EMCAMD_TREEINVALID));
      573 +                        return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID));
 573  574                  }
 574  575  
 575  576                  /* found bad cs - reread properties from it instead of spare */
 576  577                  if (getcsprops(hdl, cs, "mc_offset_to_pa", &csp) < 0)
 577  578                          return (-1);    /* errno already set */
 578  579          }
 579  580  
 580  581          csmode = MC_CS_MODE(mcp.csbnkmap_reg, csp.num);
 581  582  
 582  583          if (gettbls(hdl, csmode, &mcp, &bamp, &rcbmp,
↓ open down ↓ 85 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX