[Linux1394-cvslog] rev 624 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2002-10-20 15:18:12
|
Author: bencollins Date: 2002-10-20 11:18:07 -0400 (Sun, 20 Oct 2002) New Revision: 624 Modified: trunk/sbp2.c Log: Fix initialization of a data quadlet_t. Noted by Stefan Richter. Modified: trunk/sbp2.c ============================================================================== --- trunk/sbp2.c (original) +++ trunk/sbp2.c 2002-10-20 11:18:08.000000000 -0400 @@ -1860,13 +1860,14 @@ static int sbp2_agent_reset(struct sbp2scsi_host_info *hi, struct scsi_id_instance_data *scsi_id, u32 flags) { struct hpsb_packet *packet; - static quadlet_t data = ntohl(SBP2_AGENT_RESET_DATA) - + static quadlet_t data; + SBP2_DEBUG("sbp2_agent_reset"); /* * Ok, let's write to the target's management agent register */ + data = ntohl(SBP2_AGENT_RESET_DATA); packet = sbp2util_allocate_write_packet(hi, scsi_id->ne, scsi_id->sbp2_command_block_agent_addr + SBP2_AGENT_RESET_OFFSET, |