Author: marius
Date: Tue Apr 27 18:06:54 2010
New Revision: 207286
URL: http://svn.freebsd.org/changeset/base/207286

Log:
  Replace a magic value with the appropriate macro.

Modified:
  head/sys/dev/mpt/mpt_cam.c

Modified: head/sys/dev/mpt/mpt_cam.c
==============================================================================
--- head/sys/dev/mpt/mpt_cam.c  Tue Apr 27 18:05:33 2010        (r207285)
+++ head/sys/dev/mpt/mpt_cam.c  Tue Apr 27 18:06:54 2010        (r207286)
@@ -1058,12 +1058,13 @@ mpt_read_config_info_spi(struct mpt_soft
 static int
 mpt_set_initial_config_spi(struct mpt_softc *mpt)
 {
-       int i, pp1val = ((1 << mpt->mpt_ini_id) << 16) | mpt->mpt_ini_id;
-       int error;
+       int error, i, pp1val;
 
        mpt->mpt_disc_enable = 0xff;
        mpt->mpt_tag_enable = 0;
 
+       pp1val = ((1 << mpt->mpt_ini_id) <<
+           MPI_SCSIPORTPAGE1_CFG_SHIFT_PORT_RESPONSE_ID) | mpt->mpt_ini_id;
        if (mpt->mpt_port_page1.Configuration != pp1val) {
                CONFIG_PAGE_SCSI_PORT_1 tmp;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to