http://downloads.netgear.com/files/GPL/DM111PSP_v3.61d_GPL.tar.gz
[bcm963xx.git] / bcmdrivers / opensource / char / board / bcm963xx / impl1 / bcm63xx_flash.c
index 5b90057..44e8829 100755 (executable)
@@ -468,10 +468,7 @@ int kerSysPersistentSet(char *string, int strLen, int offset)
 
     // set string to the memory buffer
     memcpy((pBuf + fInfo.flash_persistent_blk_offset + offset), string, strLen);
-    // USR9108 add two terminating zeros to the end of the string
-    if ( strLen <= fInfo.flash_persistent_length - 2 )
-        memcpy((pBuf + fInfo.flash_persistent_blk_offset + offset + strLen), "\0\0", 2);
-       
+
     if (setSharedBlks(fInfo.flash_persistent_start_blk, 
         (fInfo.flash_persistent_number_blk + fInfo.flash_persistent_start_blk), pBuf) != 0)
         sts = -1;
@@ -818,7 +815,7 @@ int kerSysScratchPadClearAll(void)
     pBuf = pShareBuf + fInfo.flash_scratch_pad_blk_offset;  
     memset(pBuf, 0x00,  fInfo.flash_scratch_pad_length);
     sts = setSharedBlks(fInfo.flash_scratch_pad_start_blk,    
-               (fInfo.flash_scratch_pad_number_blk + fInfo.flash_scratch_pad_start_blk),  pShareBuf);
+               (fInfo.flash_scratch_pad_number_blk + fInfo.flash_scratch_pad_start_blk),  pBuf);
 
    retriedKfree(pShareBuf);