target/target: fix clang static analyzer warnings
[fw/openocd] / src / target / arm_simulator.c
index 215739d67222072d93e121ac76f77b2d7a3fd2c5..245e108acb30755b6c8efb4e2c95075feb07760f 100644 (file)
@@ -16,9 +16,7 @@
  *   GNU General Public License for more details.                          *
  *                                                                         *
  *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -524,7 +522,7 @@ static int arm_simulate_step_core(struct target *target,
 
                switch (instruction.info.load_store_multiple.addressing_mode) {
                        case 0: /* Increment after */
-                               Rn = Rn;
+                               /* Rn = Rn; */
                                break;
                        case 1: /* Increment before */
                                Rn = Rn + 4;
@@ -604,7 +602,7 @@ static int arm_simulate_step_core(struct target *target,
 
                        switch (instruction.info.load_store_multiple.addressing_mode) {
                                case 0: /* Increment after */
-                                       Rn = Rn;
+                                       /* Rn = Rn; */
                                        break;
                                case 1: /* Increment before */
                                        Rn = Rn + 4;